Merge branch '2.0-master' into 2.0-dev

dev-discount
胡锐 2 years ago
commit 1636251dcc
  1. 6
      hai-order/src/main/java/com/web/controller/OrderPayController.java
  2. 3
      hai-service/src/main/java/com/hai/order/service/impl/OrderCreateHandleServiceImpl.java

@ -159,7 +159,11 @@ public class OrderPayController {
} else if (order.getProductType().equals(OrderProductType.PRODUCT_TYPE5.getNumber())) {
HighCoupon coupon = couponService.getCouponById(order.getHighChildOrderList().get(0).getGoodsId());
if (coupon.getCouponSource() != null && coupon.getCouponSource().equals(4)) {
weChatPayReqInfo.setSub_mch_id(WxOrderConfig.MCH_ID_1634835264);
if (order.getMemDiscountId() != null) {
weChatPayReqInfo.setSub_mch_id(WxOrderConfig.MCH_ID_1614670195);
} else {
weChatPayReqInfo.setSub_mch_id(WxOrderConfig.MCH_ID_1634835264);
}
} else {
weChatPayReqInfo.setSub_mch_id(WxOrderConfig.MCH_ID_1614670195);
}

@ -191,6 +191,9 @@ public class OrderCreateHandleServiceImpl implements OrderCreateHandleService {
// 贵州中石化
if (coupon.getCouponSource().equals(4)) {
if (secConfigService.isConfig("GZ_SINOPEC_STATUS", "true") == true) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "卡券维护中,请稍后重试!");
}
// 下单请求
JSONObject jsonObject = HuiLianTongConfig.recharge(createOrderChild.getOrderNo(),
childOrder.getSaleCount(),

Loading…
Cancel
Save