作者 tangxuhui

请求超时设置

@@ -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,
@@ -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