Finish the logger maintain things.

This commit is contained in:
zicla
2018-11-30 22:01:31 +08:00
parent 84703a8971
commit 1bdfb4996e
8 changed files with 138 additions and 15 deletions

View File

@ -68,8 +68,6 @@ func (this *AlienService) PreviewOrDownload(
operator *User,
withContentDisposition bool) {
this.logger.Info("预览或下载文件 " + uuid + " " + filename)
matter := this.matterDao.CheckByUuid(uuid)
//判断是否是文件夹
@ -133,4 +131,7 @@ func (this *AlienService) PreviewOrDownload(
this.matterService.DownloadFile(writer, request, CONFIG.MatterPath+matter.Path, matter.Name, withContentDisposition)
}
//文件下载次数加一,为了加快访问速度,异步进行
go this.matterDao.TimesIncrement(uuid)
}