...
|
...
|
@@ -27,7 +27,7 @@ import java.util.Map; |
|
|
public abstract class AbstractWeixinPayService extends AbstractPayService {
|
|
|
|
|
|
|
|
|
private static final Logger logger = LoggerFactory.getLogger("alipayLogger");
|
|
|
private static final Logger logger = LoggerFactory.getLogger("wechatLogger");
|
|
|
|
|
|
|
|
|
@Value("${wechat.notifyurl}")
|
...
|
...
|
@@ -423,7 +423,7 @@ public abstract class AbstractWeixinPayService extends AbstractPayService { |
|
|
parameters.put(WeixinPayConfig.ApiConstants.MCH_ID, getMchId());
|
|
|
parameters.put(WeixinPayConfig.ApiConstants.NONCE_STR, WXUtils.getNonceStr());
|
|
|
parameters.put(WeixinPayConfig.ApiConstants.BODY, "订单号:" + orderInfo.getOrderCode());
|
|
|
parameters.put(WeixinPayConfig.ApiConstants.OUT_TRADE_NO, "YOHOBuy_" + orderInfo.getOrderCode());
|
|
|
parameters.put(WeixinPayConfig.ApiConstants.OUT_TRADE_NO, String.valueOf(orderInfo.getOrderCode()));
|
|
|
parameters.put(WeixinPayConfig.ApiConstants.TOTAL_FEE, orderInfo.getFenAmount());
|
|
|
//"X-Real-IP"可能出现"10.41.100.248, 120.197.194.125"这样的数据,微信支付会报错。需要截取一下
|
|
|
//parameters.put(WeixinPayConfig.ApiConstants.SPBILL_CREATE_IP, WXUtils.getSingleIp(remoteIp));
|
...
|
...
|
|