Finish the delete things for matter and cache.

This commit is contained in:
zicla
2019-04-04 02:31:26 +08:00
parent 28b4227215
commit 7697891807
7 changed files with 49 additions and 38 deletions

View File

@ -195,7 +195,7 @@ func (this *ImageCacheService) cacheImage(writer http.ResponseWriter, request *h
user := this.userDao.FindByUuid(matter.UserUuid)
//resize图片
dstImage := this.ResizeImage(request, GetUserFileRootDir(user.Username)+matter.Path)
dstImage := this.ResizeImage(request, matter.AbsolutePath())
cacheImageName := GetSimpleFileName(matter.Name) + "_" + mode + extension
cacheImageRelativePath := GetSimpleFileName(matter.Path) + "_" + mode + extension