正在显示
1 个修改的文件
包含
7 行增加
和
7 行删除
@@ -479,14 +479,14 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom | @@ -479,14 +479,14 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom | ||
479 | } else if len(loginSvr.PartnerInfo) > 0 { | 479 | } else if len(loginSvr.PartnerInfo) > 0 { |
480 | nickName = loginSvr.PartnerInfo[0].PartnerName | 480 | nickName = loginSvr.PartnerInfo[0].PartnerName |
481 | } | 481 | } |
482 | - if imInfo, err = InitOrUpdateUserIMInfo(int64(phoneId), nickName, transactionContext); err != nil { | ||
483 | - log.Error(err) | ||
484 | - return | ||
485 | - } | 482 | + //if imInfo, err = InitOrUpdateUserIMInfo(int64(phoneId), nickName, transactionContext); err != nil { |
483 | + // log.Error(err) | ||
484 | + // return | ||
485 | + //} | ||
486 | 486 | ||
487 | - rsp.CsAccountID = fmt.Sprintf("%v", imInfo.CustomerImId) | ||
488 | - rsp.ImToken = imInfo.ImToken | ||
489 | - rsp.Accid, _ = strconv.Atoi(imInfo.ImId) | 487 | + //rsp.CsAccountID = fmt.Sprintf("%v", imInfo.CustomerImId) |
488 | + //rsp.ImToken = imInfo.ImToken | ||
489 | + //rsp.Accid, _ = strconv.Atoi(imInfo.ImId) | ||
490 | rsp.Phone = request.Phone | 490 | rsp.Phone = request.Phone |
491 | rsp.Credentials, _ = utils.GenerateToken(int64(phoneId), request.Phone, protocol.RefreshTokenExipre*time.Second) | 491 | rsp.Credentials, _ = utils.GenerateToken(int64(phoneId), request.Phone, protocol.RefreshTokenExipre*time.Second) |
492 | 492 |
-
请 注册 或 登录 后发表评论