fix:upload设置

This commit is contained in:
momo 2023-10-26 17:21:31 +08:00
parent c26c3ea192
commit 1f4efbb72b

View File

@ -218,7 +218,7 @@ func (l *UserLogoSetLogic) UserLogoSet(req *types.UserLogoSetReq, userinfo *auth
} else {
// 更新
userInfo.Utime = &nowTime
resUpdates := tx.Model(&userInfo).Select("metadata,utime").Updates(&userInfo)
resUpdates := tx.Model(&gmodel.FsUserInfo{}).Select("metadata", "ctime").Where("id = ?", userInfo.Id).Updates(&userInfo)
err = resUpdates.Error
}