Merge branch 'test' of http://gitlab.fjmaimaimai.com/allied-creation/allied-crea…
…tion-gateway into test
正在显示
6 个修改的文件
包含
12 行增加
和
7 行删除
@@ -134,13 +134,16 @@ func (svr AuthService) AuthLoginQrcode(queryParam *query.QrcodeLoginStatusQuery) | @@ -134,13 +134,16 @@ func (svr AuthService) AuthLoginQrcode(queryParam *query.QrcodeLoginStatusQuery) | ||
134 | CompanyId: qrmsgCache.CompanyId, | 134 | CompanyId: qrmsgCache.CompanyId, |
135 | OrgId: qrmsgCache.OrgId, | 135 | OrgId: qrmsgCache.OrgId, |
136 | } | 136 | } |
137 | - accessToken, err := loginToken.GenerateAccessToken() | 137 | + // accessToken, err := loginToken.GenerateAccessToken() |
138 | + // if err != nil { | ||
139 | + // return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | ||
140 | + // } | ||
141 | + qrCache.Remove(qrmsgCache.Id) | ||
142 | + // _ = accessToken | ||
143 | + result, err := svr.getToken(loginToken) | ||
138 | if err != nil { | 144 | if err != nil { |
139 | return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) | 145 | return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error()) |
140 | } | 146 | } |
141 | - qrCache.Remove(qrmsgCache.Id) | ||
142 | - _ = accessToken | ||
143 | - result, err := svr.getToken(loginToken) | ||
144 | data := map[string]interface{}{ | 147 | data := map[string]interface{}{ |
145 | "isLogin": qrmsgCache.IsLogin, | 148 | "isLogin": qrmsgCache.IsLogin, |
146 | "access": result["token"], | 149 | "access": result["token"], |
@@ -17,7 +17,7 @@ func NewHttplibAlliedCreationBasic(operator domain.Operator) *HttplibAlliedCreat | @@ -17,7 +17,7 @@ func NewHttplibAlliedCreationBasic(operator domain.Operator) *HttplibAlliedCreat | ||
17 | return &HttplibAlliedCreationBasic{ | 17 | return &HttplibAlliedCreationBasic{ |
18 | BaseServiceGateway: service_gateway.BaseServiceGateway{ | 18 | BaseServiceGateway: service_gateway.BaseServiceGateway{ |
19 | ConnectTimeout: 100 * time.Second, | 19 | ConnectTimeout: 100 * time.Second, |
20 | - ReadWriteTimeout: 30 * time.Second, | 20 | + ReadWriteTimeout: 100 * time.Second, |
21 | CompanyId: operator.CompanyId, | 21 | CompanyId: operator.CompanyId, |
22 | OrgId: operator.OrgId, | 22 | OrgId: operator.OrgId, |
23 | UserId: operator.UserId, | 23 | UserId: operator.UserId, |
@@ -17,7 +17,7 @@ func NewHttplibAlliedCreationCooperation(operator domain.Operator) *HttplibAllie | @@ -17,7 +17,7 @@ func NewHttplibAlliedCreationCooperation(operator domain.Operator) *HttplibAllie | ||
17 | return &HttplibAlliedCreationCooperation{ | 17 | return &HttplibAlliedCreationCooperation{ |
18 | BaseServiceGateway: service_gateway.BaseServiceGateway{ | 18 | BaseServiceGateway: service_gateway.BaseServiceGateway{ |
19 | ConnectTimeout: 100 * time.Second, | 19 | ConnectTimeout: 100 * time.Second, |
20 | - ReadWriteTimeout: 30 * time.Second, | 20 | + ReadWriteTimeout: 100 * time.Second, |
21 | CompanyId: operator.CompanyId, | 21 | CompanyId: operator.CompanyId, |
22 | OrgId: operator.OrgId, | 22 | OrgId: operator.OrgId, |
23 | UserId: operator.UserId, | 23 | UserId: operator.UserId, |
@@ -218,6 +218,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsEstimateDividendsIncent | @@ -218,6 +218,7 @@ func (gateway HttplibAlliedCreationCooperation) DividendsEstimateDividendsIncent | ||
218 | }) | 218 | }) |
219 | var result service_gateway.GatewayResponse | 219 | var result service_gateway.GatewayResponse |
220 | err = json.Unmarshal(byteResult, &result) | 220 | err = json.Unmarshal(byteResult, &result) |
221 | + log.Logger.Debug("获取业务模块请求数据:确定预算分红激励+++++" + string(byteResult)) | ||
221 | if err != nil { | 222 | if err != nil { |
222 | return nil, fmt.Errorf("解析确定预算分红激励:%w", err) | 223 | return nil, fmt.Errorf("解析确定预算分红激励:%w", err) |
223 | } | 224 | } |
@@ -18,7 +18,7 @@ func NewHttplibAlliedCreationUser(operator domain.Operator) *HttplibAlliedCreati | @@ -18,7 +18,7 @@ func NewHttplibAlliedCreationUser(operator domain.Operator) *HttplibAlliedCreati | ||
18 | return &HttplibAlliedCreationUser{ | 18 | return &HttplibAlliedCreationUser{ |
19 | BaseServiceGateway: service_gateway.BaseServiceGateway{ | 19 | BaseServiceGateway: service_gateway.BaseServiceGateway{ |
20 | ConnectTimeout: 100 * time.Second, | 20 | ConnectTimeout: 100 * time.Second, |
21 | - ReadWriteTimeout: 30 * time.Second, | 21 | + ReadWriteTimeout: 100 * time.Second, |
22 | CompanyId: operator.CompanyId, | 22 | CompanyId: operator.CompanyId, |
23 | OrgId: operator.OrgId, | 23 | OrgId: operator.OrgId, |
24 | UserId: operator.UserId, | 24 | UserId: operator.UserId, |
@@ -138,6 +138,7 @@ func (gateway HttplibAlliedCreationUser) UserGet(param ReqGetUser) (*DataGateUse | @@ -138,6 +138,7 @@ func (gateway HttplibAlliedCreationUser) UserGet(param ReqGetUser) (*DataGateUse | ||
138 | } | 138 | } |
139 | var data DataGateUser | 139 | var data DataGateUser |
140 | err = gateway.GetResponseData(result, &data) | 140 | err = gateway.GetResponseData(result, &data) |
141 | + | ||
141 | return &data, err | 142 | return &data, err |
142 | } | 143 | } |
143 | 144 |
-
请 注册 或 登录 后发表评论