作者 yangfu

用户中心修改

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