EWM接口超时时长设置30-60秒
This commit is contained in:
parent
2f3fe17f52
commit
3e72a70dd8
|
|
@ -40,7 +40,7 @@ public class EwmApiServiceImpl implements IEwmApiService {
|
||||||
HttpRequest httpRequest = HttpRequest.postInstanceOf(
|
HttpRequest httpRequest = HttpRequest.postInstanceOf(
|
||||||
appCommon.getConfigByKey(AppConfigKeyEnums.EWM_SEND_VEHICLE_URL.getKey()),
|
appCommon.getConfigByKey(AppConfigKeyEnums.EWM_SEND_VEHICLE_URL.getKey()),
|
||||||
request,
|
request,
|
||||||
5000,
|
30000,
|
||||||
"application/json",
|
"application/json",
|
||||||
"Basic " + encodedAuth);
|
"Basic " + encodedAuth);
|
||||||
|
|
||||||
|
|
@ -77,7 +77,7 @@ public class EwmApiServiceImpl implements IEwmApiService {
|
||||||
HttpRequest httpRequest = HttpRequest.postInstanceOf(
|
HttpRequest httpRequest = HttpRequest.postInstanceOf(
|
||||||
appCommon.getConfigByKey(AppConfigKeyEnums.EWM_SEND_WAREHOUSE_IN_COMPLETED_URL.getKey()),
|
appCommon.getConfigByKey(AppConfigKeyEnums.EWM_SEND_WAREHOUSE_IN_COMPLETED_URL.getKey()),
|
||||||
request,
|
request,
|
||||||
10000,
|
30000,
|
||||||
"application/json",
|
"application/json",
|
||||||
"Basic " + encodedAuth);
|
"Basic " + encodedAuth);
|
||||||
HttpResponse httpResponse = httpClient.httpPost(httpRequest);
|
HttpResponse httpResponse = httpClient.httpPost(httpRequest);
|
||||||
|
|
@ -105,7 +105,7 @@ public class EwmApiServiceImpl implements IEwmApiService {
|
||||||
HttpRequest httpRequest = HttpRequest.postInstanceOf(
|
HttpRequest httpRequest = HttpRequest.postInstanceOf(
|
||||||
appCommon.getConfigByKey(AppConfigKeyEnums.EWM_SEND_WAREHOUSE_OUT_COMPLETED_URL.getKey()),
|
appCommon.getConfigByKey(AppConfigKeyEnums.EWM_SEND_WAREHOUSE_OUT_COMPLETED_URL.getKey()),
|
||||||
request,
|
request,
|
||||||
10000,
|
60000,
|
||||||
"application/json",
|
"application/json",
|
||||||
"Basic " + encodedAuth);
|
"Basic " + encodedAuth);
|
||||||
|
|
||||||
|
|
@ -141,7 +141,7 @@ public class EwmApiServiceImpl implements IEwmApiService {
|
||||||
HttpRequest httpRequest = HttpRequest.postInstanceOf(
|
HttpRequest httpRequest = HttpRequest.postInstanceOf(
|
||||||
finalUrl,
|
finalUrl,
|
||||||
request,
|
request,
|
||||||
10000,
|
30000,
|
||||||
"application/json",
|
"application/json",
|
||||||
"Basic " + encodedAuth);
|
"Basic " + encodedAuth);
|
||||||
|
|
||||||
|
|
@ -169,7 +169,7 @@ public class EwmApiServiceImpl implements IEwmApiService {
|
||||||
HttpRequest httpRequest = HttpRequest.postInstanceOf(
|
HttpRequest httpRequest = HttpRequest.postInstanceOf(
|
||||||
appCommon.getConfigByKey(AppConfigKeyEnums.EWM_GET_STOCK_LIST_URL.getKey()),
|
appCommon.getConfigByKey(AppConfigKeyEnums.EWM_GET_STOCK_LIST_URL.getKey()),
|
||||||
request,
|
request,
|
||||||
10000,
|
30000,
|
||||||
"application/json",
|
"application/json",
|
||||||
"Basic " + encodedAuth);
|
"Basic " + encodedAuth);
|
||||||
HttpResponse httpResponse = httpClient.httpPost(httpRequest);
|
HttpResponse httpResponse = httpClient.httpPost(httpRequest);
|
||||||
|
|
@ -196,7 +196,7 @@ public class EwmApiServiceImpl implements IEwmApiService {
|
||||||
HttpRequest httpRequest = HttpRequest.postInstanceOf(
|
HttpRequest httpRequest = HttpRequest.postInstanceOf(
|
||||||
appCommon.getConfigByKey(AppConfigKeyEnums.EWM_CHECK_CONTAINER_NO_URL.getKey()),
|
appCommon.getConfigByKey(AppConfigKeyEnums.EWM_CHECK_CONTAINER_NO_URL.getKey()),
|
||||||
request,
|
request,
|
||||||
10000,
|
30000,
|
||||||
"application/json",
|
"application/json",
|
||||||
"Basic " + encodedAuth);
|
"Basic " + encodedAuth);
|
||||||
HttpResponse httpResponse = httpClient.httpPost(httpRequest);
|
HttpResponse httpResponse = httpClient.httpPost(httpRequest);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user