fix:上传logo
This commit is contained in:
parent
89b5111040
commit
d49e966bf0
|
@ -249,6 +249,7 @@ func (l *UploadLogoLogic) UploadLogo(req *types.UploadLogoReq, userinfo *auth.Us
|
||||||
}
|
}
|
||||||
userInfo.Metadata = &metadataB
|
userInfo.Metadata = &metadataB
|
||||||
if userInfo.Id > 0 {
|
if userInfo.Id > 0 {
|
||||||
|
userInfo.Utime = &nowTime
|
||||||
resUpdates := tx.Select("metadata").Where("id = ?", userInfo.Id).Updates(&userInfo)
|
resUpdates := tx.Select("metadata").Where("id = ?", userInfo.Id).Updates(&userInfo)
|
||||||
err = resUpdates.Error
|
err = resUpdates.Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user