fix 通用下载
This commit is contained in:
+1
-2
@@ -194,8 +194,7 @@ public class CommonController {
|
||||
ossFile.setDownloadNumber(downloadNumber + 1);
|
||||
}
|
||||
ossFileService.updateAndPush(ossFile);
|
||||
LoginUser loginUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
ossFileService.saveDownloadTimes(ossFile.getId(), loginUser.getId());
|
||||
ossFileService.saveDownloadTimes(ossFile.getId(), null);
|
||||
} else if ("view".equals(type)) {
|
||||
Integer viewNumber = ossFile.getViewNumber();
|
||||
if (viewNumber == null) {
|
||||
|
||||
Reference in New Issue
Block a user