作者 tangxuhui

请求超时设置

... ... @@ -17,7 +17,7 @@ func NewHttplibAlliedCreationBasic(operator domain.Operator) *HttplibAlliedCreat
return &HttplibAlliedCreationBasic{
BaseServiceGateway: service_gateway.BaseServiceGateway{
ConnectTimeout: 100 * time.Second,
ReadWriteTimeout: 30 * time.Second,
ReadWriteTimeout: 100 * time.Second,
CompanyId: operator.CompanyId,
OrgId: operator.OrgId,
UserId: operator.UserId,
... ...
... ... @@ -17,7 +17,7 @@ func NewHttplibAlliedCreationCooperation(operator domain.Operator) *HttplibAllie
return &HttplibAlliedCreationCooperation{
BaseServiceGateway: service_gateway.BaseServiceGateway{
ConnectTimeout: 100 * time.Second,
ReadWriteTimeout: 30 * time.Second,
ReadWriteTimeout: 100 * time.Second,
CompanyId: operator.CompanyId,
OrgId: operator.OrgId,
UserId: operator.UserId,
... ...
... ... @@ -18,7 +18,7 @@ func NewHttplibAlliedCreationUser(operator domain.Operator) *HttplibAlliedCreati
return &HttplibAlliedCreationUser{
BaseServiceGateway: service_gateway.BaseServiceGateway{
ConnectTimeout: 100 * time.Second,
ReadWriteTimeout: 30 * time.Second,
ReadWriteTimeout: 100 * time.Second,
CompanyId: operator.CompanyId,
OrgId: operator.OrgId,
UserId: operator.UserId,
... ...
... ... @@ -138,6 +138,7 @@ func (gateway HttplibAlliedCreationUser) UserGet(param ReqGetUser) (*DataGateUse
}
var data DataGateUser
err = gateway.GetResponseData(result, &data)
return &data, err
}
... ...