作者 yangfu

修改:测试

@@ -6,7 +6,6 @@ require ( @@ -6,7 +6,6 @@ require (
6 github.com/astaxie/beego v1.12.1 6 github.com/astaxie/beego v1.12.1
7 github.com/dgrijalva/jwt-go v3.2.0+incompatible 7 github.com/dgrijalva/jwt-go v3.2.0+incompatible
8 github.com/gin-gonic/gin v1.5.0 8 github.com/gin-gonic/gin v1.5.0
9 - github.com/go-pg/pg v8.0.6+incompatible  
10 github.com/go-pg/pg/v10 v10.0.0-beta.2 9 github.com/go-pg/pg/v10 v10.0.0-beta.2
11 github.com/linmadan/egglib-go v0.0.0-20191217144343-ca4539f95bf9 10 github.com/linmadan/egglib-go v0.0.0-20191217144343-ca4539f95bf9
12 github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 // indirect 11 github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 // indirect
@@ -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}