Authored by Lixiaodi

香港价格

... ... @@ -940,7 +940,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon
throw new ServiceException(400, "错误:订单不存在或者订单状态变化,不允许清关失败");
}
String args = "ufo-gateway.cancelOverseasOrderForBuyerClearFail";
JSONObject jsonObject = asyncCallSettleFail(args, buyerOrder.getOrderCode());
JSONObject jsonObject = asyncCallSettleFail(args, buyerOrder.getOrderCode(), req.getSettleFailReason());
LOGGER.info("settleFail orderCode is {} ,result json {}", req.getOrderCode(), jsonObject);
buyerOrderFeedbackService.submitBuyerOrderFeedback(req.getOrderCode(),req.getSettleFailReason());
... ... @@ -1634,10 +1634,11 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon
return jsonObject;
}
private JSONObject asyncCallSettleFail(String args, String orderCode) {
LOGGER.info("asyncCallSettleFail call ufo-gateway enter orderCode is {}, interface is {},result is {}", orderCode, args);
private JSONObject asyncCallSettleFail(String args, String orderCode, String reason) {
LOGGER.info("asyncCallSettleFail call ufo-gateway enter orderCode is {},reason is{}, interface is {},result is {}", orderCode,reason, args);
BuyerOrderCancelReq request = new BuyerOrderCancelReq();
request.setOrderCode(Long.valueOf(orderCode));
request.setCancelReason(reason);
JSONObject jsonObject = serviceCaller.asyncCall(args, request, JSONObject.class).get(5, TimeUnit.SECONDS);
LOGGER.info("asyncCallSettleFail call ufo-gateway orderCode is {}, interface is {},result is {}", orderCode, args, jsonObject);
return jsonObject;
... ...