作者 yangfu

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

@@ -330,6 +330,7 @@ func CenterCompanys(header *protocol.RequestHeader, request *protocolx.CenterCom @@ -330,6 +330,7 @@ func CenterCompanys(header *protocol.RequestHeader, request *protocolx.CenterCom
330 rsp.CsAccountID = fmt.Sprintf("%v", imInfo.CustomerImId) 330 rsp.CsAccountID = fmt.Sprintf("%v", imInfo.CustomerImId)
331 rsp.ImToken = imInfo.ImToken 331 rsp.ImToken = imInfo.ImToken
332 rsp.Accid, _ = strconv.Atoi(imInfo.ImId) 332 rsp.Accid, _ = strconv.Atoi(imInfo.ImId)
  333 + rsp.Phone = request.Phone
333 rsp.Credentials, _ = utils.GenerateToken(int64(phoneId), request.Phone, protocol.RefreshTokenExipre*time.Second) 334 rsp.Credentials, _ = utils.GenerateToken(int64(phoneId), request.Phone, protocol.RefreshTokenExipre*time.Second)
334 335
335 err = transactionContext.CommitTransaction() 336 err = transactionContext.CommitTransaction()
@@ -5,6 +5,7 @@ type CenterCompanysResponse struct { @@ -5,6 +5,7 @@ type CenterCompanysResponse struct {
5 ImToken string `json:"imToken"` //网易云信Token 5 ImToken string `json:"imToken"` //网易云信Token
6 CsAccountID string `json:"csAccountID"` //系统分配客服ID 6 CsAccountID string `json:"csAccountID"` //系统分配客服ID
7 Credentials string `json:"credentials"` //登录凭证 7 Credentials string `json:"credentials"` //登录凭证
  8 + Phone string `json:"phone"` //登录手机号
8 Partner interface{} `json:"partner"` //合伙人对象 9 Partner interface{} `json:"partner"` //合伙人对象
9 Manager interface{} `json:"manager"` //高管对象 10 Manager interface{} `json:"manager"` //高管对象
10 } 11 }