...
|
...
|
@@ -479,14 +479,14 @@ func CompaniesLogin(header *protocol.RequestHeader, request *protocolx.CenterCom |
|
|
} else if len(loginSvr.PartnerInfo) > 0 {
|
|
|
nickName = loginSvr.PartnerInfo[0].PartnerName
|
|
|
}
|
|
|
if imInfo, err = InitOrUpdateUserIMInfo(int64(phoneId), nickName, transactionContext); err != nil {
|
|
|
log.Error(err)
|
|
|
return
|
|
|
}
|
|
|
//if imInfo, err = InitOrUpdateUserIMInfo(int64(phoneId), nickName, transactionContext); err != nil {
|
|
|
// log.Error(err)
|
|
|
// return
|
|
|
//}
|
|
|
|
|
|
rsp.CsAccountID = fmt.Sprintf("%v", imInfo.CustomerImId)
|
|
|
rsp.ImToken = imInfo.ImToken
|
|
|
rsp.Accid, _ = strconv.Atoi(imInfo.ImId)
|
|
|
//rsp.CsAccountID = fmt.Sprintf("%v", imInfo.CustomerImId)
|
|
|
//rsp.ImToken = imInfo.ImToken
|
|
|
//rsp.Accid, _ = strconv.Atoi(imInfo.ImId)
|
|
|
rsp.Phone = request.Phone
|
|
|
rsp.Credentials, _ = utils.GenerateToken(int64(phoneId), request.Phone, protocol.RefreshTokenExipre*time.Second)
|
|
|
|
...
|
...
|
|