作者 yangfu

修改:用户公司增加字段 phone

... ... @@ -330,6 +330,7 @@ func CenterCompanys(header *protocol.RequestHeader, request *protocolx.CenterCom
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)
err = transactionContext.CommitTransaction()
... ...
... ... @@ -5,6 +5,7 @@ type CenterCompanysResponse struct {
ImToken string `json:"imToken"` //网易云信Token
CsAccountID string `json:"csAccountID"` //系统分配客服ID
Credentials string `json:"credentials"` //登录凭证
Phone string `json:"phone"` //登录手机号
Partner interface{} `json:"partner"` //合伙人对象
Manager interface{} `json:"manager"` //高管对象
}
... ...