|
@@ -68,8 +68,13 @@ public class FastDeliveryProxyService { |
|
@@ -68,8 +68,13 @@ public class FastDeliveryProxyService { |
68
|
return new ApiResponse();
|
68
|
return new ApiResponse();
|
69
|
}
|
69
|
}
|
70
|
logger.info("fast delivery lockSkup, skup {}, url {}", skup, sellerAccessInfo.getLockSkupUrl());
|
70
|
logger.info("fast delivery lockSkup, skup {}, url {}", skup, sellerAccessInfo.getLockSkupUrl());
|
71
|
- ApiResponse result = baseServiceCaller.doPost("fast.delivery.lockSkup", sellerAccessInfo.getLockSkupUrl(),
|
71
|
+ ApiResponse result = null;
|
|
|
72
|
+ try{
|
|
|
73
|
+ result = baseServiceCaller.doPost("fast.delivery.lockSkup", sellerAccessInfo.getLockSkupUrl(),
|
72
|
getParam(skup, null, null, sellerAccessInfo.getYhSecret()));
|
74
|
getParam(skup, null, null, sellerAccessInfo.getYhSecret()));
|
|
|
75
|
+ }catch (Exception e){
|
|
|
76
|
+ throw new ServiceException(403, "扣减库存失败");
|
|
|
77
|
+ }
|
73
|
logger.info("fast delivery lockSkup, skup {}, result {}", skup, result);
|
78
|
logger.info("fast delivery lockSkup, skup {}, result {}", skup, result);
|
74
|
|
79
|
|
75
|
return result;
|
80
|
return result;
|