修复没有更新画家id的问题

This commit is contained in:
徐俊杰 2023-04-11 16:42:26 +08:00
parent 057422051a
commit cdfbd81ed9

View File

@ -816,6 +816,9 @@ func UpdateUserData(req *artistInfoUser.UserInfo) (rep *artistInfoUser.CommonNoP
if req.WxAccount != "" {
preUpdateData.WxAccount = req.WxAccount
}
if req.MgmtArtistId != 0 {
preUpdateData.MgmtArtistId = req.MgmtArtistId
}
tx := db.DB.Begin()
err = tx.Save(&preUpdateData).Error