Authored by TANLING

扣减库存失败消息提示

... ... @@ -135,6 +135,8 @@ public class ErpFastDeliveryServiceImpl implements IErpFastDeliveryService {
*/
public FastDeliveryGetShelfDetailResp getShelfInfo(FastDeliveryGetShelfReq req) {
logger.info("enter FastDeliveryGetShelfDetailResp {}", req);
if (req.getUid() < 0) {
logger.warn("uid is empty");
throw new UfoServiceException(400, "参数[uid]不合法");
... ...
... ... @@ -68,8 +68,13 @@ public class FastDeliveryProxyService {
return new ApiResponse();
}
logger.info("fast delivery lockSkup, skup {}, url {}", skup, sellerAccessInfo.getLockSkupUrl());
ApiResponse result = baseServiceCaller.doPost("fast.delivery.lockSkup", sellerAccessInfo.getLockSkupUrl(),
getParam(skup, null, null, sellerAccessInfo.getYhSecret()));
ApiResponse result = null;
try{
result = baseServiceCaller.doPost("fast.delivery.lockSkup", sellerAccessInfo.getLockSkupUrl(),
getParam(skup, null, null, sellerAccessInfo.getYhSecret()));
}catch (Exception e){
throw new ServiceException(403, "扣减库存失败");
}
logger.info("fast delivery lockSkup, skup {}, result {}", skup, result);
return result;
... ...