作者 yangfu

用户中心修改

... ... @@ -46,8 +46,8 @@ type UCenterGetUserResponse struct {
NickName string `json:"nickname"`
Avatar string `json:"avatar"`
ImToken string `json:"imtoken"`
Accid string `json:"accid"`
CustomerAccount string `json:"customerAccount"`
Accid int64 `json:"accid"`
CustomerAccount int64 `json:"customerAccount"`
}
/*修改用户信息 UCenterPutUser */
... ...
... ... @@ -106,11 +106,11 @@ Success:
userAuth.AuthCode = uid.NewV1().StringNoDash()
/*更新用户信息*/
user.CsAccount, _ = strconv.ParseInt(getUserResponse.CustomerAccount, 10, 64)
user.CsAccount = getUserResponse.CustomerAccount
user.ImToken = getUserResponse.ImToken
user.Icon = getUserResponse.Avatar
user.NickName = getUserResponse.NickName
user.Accid, _ = strconv.ParseInt(getUserResponse.Accid, 10, 64)
user.Accid = getUserResponse.Accid
user.UserCenterId = getUserResponse.Id
if err = models.UpdateUsersById(user); err != nil {
log.Error(err)
... ...