修复没有更新画家id的问题
This commit is contained in:
parent
057422051a
commit
cdfbd81ed9
@ -816,6 +816,9 @@ func UpdateUserData(req *artistInfoUser.UserInfo) (rep *artistInfoUser.CommonNoP
|
|||||||
if req.WxAccount != "" {
|
if req.WxAccount != "" {
|
||||||
preUpdateData.WxAccount = req.WxAccount
|
preUpdateData.WxAccount = req.WxAccount
|
||||||
}
|
}
|
||||||
|
if req.MgmtArtistId != 0 {
|
||||||
|
preUpdateData.MgmtArtistId = req.MgmtArtistId
|
||||||
|
}
|
||||||
|
|
||||||
tx := db.DB.Begin()
|
tx := db.DB.Begin()
|
||||||
err = tx.Save(&preUpdateData).Error
|
err = tx.Save(&preUpdateData).Error
|
||||||
|
Loading…
Reference in New Issue
Block a user