正在显示
1 个修改的文件
包含
17 行增加
和
17 行删除
@@ -202,23 +202,23 @@ func LoginAuthByUCenter(account, password string) (protocol.LoginAuthToken, erro | @@ -202,23 +202,23 @@ func LoginAuthByUCenter(account, password string) (protocol.LoginAuthToken, erro | ||
202 | return logintoken, protocol.NewErrWithMessage("10022") | 202 | return logintoken, protocol.NewErrWithMessage("10022") |
203 | } | 203 | } |
204 | companyid = companys[0].Id | 204 | companyid = companys[0].Id |
205 | - var uclientReturn *ucenter.ResponseLogin | ||
206 | - uclientReturn, err = requestUCenterLogin(account, password) | ||
207 | - if err != nil { | ||
208 | - return logintoken, protocol.NewErrWithMessage("10021") | ||
209 | - } | ||
210 | - //更新用户数据 | ||
211 | - _ = uclientReturn | ||
212 | - userdata.Accid = uclientReturn.Data.Accid | ||
213 | - userdata.Icon = uclientReturn.Data.Avatar | ||
214 | - userdata.ImToken = uclientReturn.Data.Imtoken | ||
215 | - userdata.NickName = uclientReturn.Data.NickName | ||
216 | - userdata.CsAccount = uclientReturn.Data.CustomerAccount | ||
217 | - userdata.LastLoginTime = time.Now() | ||
218 | - err = models.UpdateUserById(userdata, []string{"Accid", "Icon", "ImToken", "NickName", "CsAccount", "LastLoginTime"}) | ||
219 | - if err != nil { | ||
220 | - log.Error("更新用户数据失败:%s", err) | ||
221 | - } | 205 | + // var uclientReturn *ucenter.ResponseLogin |
206 | + // uclientReturn, err = requestUCenterLogin(account, password) | ||
207 | + // if err != nil { | ||
208 | + // return logintoken, protocol.NewErrWithMessage("10021") | ||
209 | + // } | ||
210 | + // //更新用户数据 | ||
211 | + // _ = uclientReturn | ||
212 | + // userdata.Accid = uclientReturn.Data.Accid | ||
213 | + // userdata.Icon = uclientReturn.Data.Avatar | ||
214 | + // userdata.ImToken = uclientReturn.Data.Imtoken | ||
215 | + // userdata.NickName = uclientReturn.Data.NickName | ||
216 | + // userdata.CsAccount = uclientReturn.Data.CustomerAccount | ||
217 | + // userdata.LastLoginTime = time.Now() | ||
218 | + // err = models.UpdateUserById(userdata, []string{"Accid", "Icon", "ImToken", "NickName", "CsAccount", "LastLoginTime"}) | ||
219 | + // if err != nil { | ||
220 | + // log.Error("更新用户数据失败:%s", err) | ||
221 | + // } | ||
222 | logintoken, _ = GenerateAuthToken(userdata.Id, companyid) | 222 | logintoken, _ = GenerateAuthToken(userdata.Id, companyid) |
223 | return logintoken, err | 223 | return logintoken, err |
224 | } | 224 | } |
-
请 注册 或 登录 后发表评论