|
@@ -331,7 +331,7 @@ func CenterCompanys(header *protocol.RequestHeader, request *protocolx.CenterCom |
|
@@ -331,7 +331,7 @@ func CenterCompanys(header *protocol.RequestHeader, request *protocolx.CenterCom |
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.Phone = request.Phone
|
334
|
- rsp.Credentials, _ = utils.GenerateToken(int64(phoneId), request.Phone, protocol.RefreshTokenExipre*time.Second)
|
334
|
+ rsp.Credentials, _ = utils.GenerateToken(int64(phoneId), request.Phone, 60*time.Second)
|
335
|
|
335
|
|
336
|
err = transactionContext.CommitTransaction()
|
336
|
err = transactionContext.CommitTransaction()
|
337
|
v = map[string]interface{}{"center": rsp}
|
337
|
v = map[string]interface{}{"center": rsp}
|