fix 通用下载

This commit is contained in:
lijiarao
2021-12-24 11:37:20 +08:00
parent 7e3ed6e917
commit 90b6450891
@@ -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) {