Finish the logger maintain things.
This commit is contained in:
@ -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)
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user