...
|
...
|
@@ -253,7 +253,7 @@ func Revoke(header *protocol.RequestHeader, request *protocol.RevokeRequest) (rs |
|
|
return
|
|
|
}
|
|
|
|
|
|
func CenterCompanys(header *protocol.RequestHeader, request *protocolx.CenterCompanysRequest) (rsp *protocolx.CenterCompanysResponse, err error) {
|
|
|
func CenterCompanys(header *protocol.RequestHeader, request *protocolx.CenterCompanysRequest) (v interface{}, err error) {
|
|
|
var (
|
|
|
transactionContext, _ = factory.CreateTransactionContext(nil)
|
|
|
imInfo *domain.ImInfo
|
...
|
...
|
@@ -265,7 +265,7 @@ func CenterCompanys(header *protocol.RequestHeader, request *protocolx.CenterCom |
|
|
e = protocol.NewErrWithMessage(2)
|
|
|
return
|
|
|
}
|
|
|
rsp = &protocolx.CenterCompanysResponse{}
|
|
|
rsp := &protocolx.CenterCompanysResponse{}
|
|
|
if err = transactionContext.StartTransaction(); err != nil {
|
|
|
log.Error(err)
|
|
|
return nil, err
|
...
|
...
|
@@ -326,6 +326,7 @@ func CenterCompanys(header *protocol.RequestHeader, request *protocolx.CenterCom |
|
|
rsp.Credentials, _ = utils.GenerateToken(int64(phoneId), request.Phone, protocol.RefreshTokenExipre*time.Second)
|
|
|
|
|
|
err = transactionContext.CommitTransaction()
|
|
|
v = map[string]interface{}{"center": rsp}
|
|
|
return
|
|
|
}
|
|
|
|
...
|
...
|
|