Authored by TANLING

扣减库存失败消息提示

@@ -135,6 +135,8 @@ public class ErpFastDeliveryServiceImpl implements IErpFastDeliveryService { @@ -135,6 +135,8 @@ public class ErpFastDeliveryServiceImpl implements IErpFastDeliveryService {
135 */ 135 */
136 public FastDeliveryGetShelfDetailResp getShelfInfo(FastDeliveryGetShelfReq req) { 136 public FastDeliveryGetShelfDetailResp getShelfInfo(FastDeliveryGetShelfReq req) {
137 137
  138 + logger.info("enter FastDeliveryGetShelfDetailResp {}", req);
  139 +
138 if (req.getUid() < 0) { 140 if (req.getUid() < 0) {
139 logger.warn("uid is empty"); 141 logger.warn("uid is empty");
140 throw new UfoServiceException(400, "参数[uid]不合法"); 142 throw new UfoServiceException(400, "参数[uid]不合法");
@@ -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;