Finish all the work of physics file.

This commit is contained in:
zicla
2019-04-10 01:59:20 +08:00
parent 7f7fba0425
commit ef78a26c7a
7 changed files with 103 additions and 39 deletions

View File

@ -432,13 +432,7 @@ func (this *MatterController) Rename(writer http.ResponseWriter, request *http.R
this.PanicBadRequest("【" + name + "】已经存在了,请使用其他名称。")
}
matter.Name = name
matter = this.matterDao.Save(matter)
//删除对应的缓存图片。
if !matter.Dir {
this.imageCacheDao.DeleteByMatterUuid(matter.Uuid)
}
this.matterService.Rename(matter, name)
return this.Success(matter)
}