提交代码

dev-discount
胡锐 2 years ago
parent 93beb185cf
commit cbfd795f5f
  1. 12
      hai-cweb/src/main/java/com/cweb/controller/pay/OrderController.java
  2. 7
      hai-service/src/main/java/com/hai/common/utils/HttpsUtils.java
  3. 6
      hai-service/src/main/java/com/hai/config/WxOrderConfig.java

@ -232,7 +232,17 @@ public class OrderController {
weChatPayReqInfo.setSub_appid(SysConst.getSysConfig().getWxSubAppId());//商户号 weChatPayReqInfo.setSub_appid(SysConst.getSysConfig().getWxSubAppId());//商户号
} }
if (order.getHighChildOrderList().get(0).getGoodsType() == 8) { if (order.getHighChildOrderList().get(0).getGoodsType() == 1) {
//子商户号
weChatPayReqInfo.setSub_mch_id(SysConst.getSysConfig().getWxSubMchId());
HighCoupon coupon = highCouponService.getCouponById(order.getHighChildOrderList().get(0).getGoodsId());
// 支付类型:1.微信支付 2.金币支付
if (coupon.getCouponSource() != null && coupon.getCouponSource().equals(4)) {
weChatPayReqInfo.setSub_mch_id(WxOrderConfig.MCH_ID_1634835264);
}
} else if (order.getHighChildOrderList().get(0).getGoodsType() == 8) {
weChatPayReqInfo.setSub_mch_id(SysConst.getSysConfig().getWxGzSubMchId());//商户号 weChatPayReqInfo.setSub_mch_id(SysConst.getSysConfig().getWxGzSubMchId());//商户号
} else if (order.getHighChildOrderList().get(0).getGoodsType() == 3) { } else if (order.getHighChildOrderList().get(0).getGoodsType() == 3) {

@ -51,14 +51,15 @@ public class HttpsUtils {
private static PoolingHttpClientConnectionManager connMgr; private static PoolingHttpClientConnectionManager connMgr;
private static RequestConfig requestConfig; private static RequestConfig requestConfig;
private static final int MAX_TIMEOUT = 15000; private static final int MAX_TIMEOUT = 10000;
static { static {
// 设置连接池 // 设置连接池
connMgr = new PoolingHttpClientConnectionManager(); connMgr = new PoolingHttpClientConnectionManager();
// 设置连接池大小 // 设置连接池大小
connMgr.setMaxTotal(100); connMgr.setMaxTotal(1000);
connMgr.setDefaultMaxPerRoute(connMgr.getMaxTotal()); // 并发数量
connMgr.setDefaultMaxPerRoute(500);
// Validate connections after 1 sec of inactivity // Validate connections after 1 sec of inactivity
connMgr.setValidateAfterInactivity(1000); connMgr.setValidateAfterInactivity(1000);
RequestConfig.Builder configBuilder = RequestConfig.custom(); RequestConfig.Builder configBuilder = RequestConfig.custom();

@ -62,6 +62,12 @@ public class WxOrderConfig {
*/ */
public static final String MCH_ID_1619676214 = "1619676214"; public static final String MCH_ID_1619676214 = "1619676214";
/**
* 微信支付商户号
* 惠昕贵州能源有限公司
*/
public static final String MCH_ID_1634835264 = "1634835264";
/** /**
* 微信支付商户号 * 微信支付商户号
* 渝北区浩联物资经营部 * 渝北区浩联物资经营部

Loading…
Cancel
Save