mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-01 02:38:43 +08:00 
			
		
		
		
	【代码修复】PAY:微信扫码支付 v2 版本,缺少 product_id 的报错
This commit is contained in:
		| @@ -34,8 +34,8 @@ public class WxNativePayClient extends AbstractWxPayClient { | ||||
|     @Override | ||||
|     protected PayOrderRespDTO doUnifiedOrderV2(PayOrderUnifiedReqDTO reqDTO) throws WxPayException { | ||||
|         // 构建 WxPayUnifiedOrderRequest 对象 | ||||
|         WxPayUnifiedOrderRequest request = buildPayUnifiedOrderRequestV2(reqDTO); | ||||
| //                .setProductId(reqDTO.getOutTradeNo()); // V2 必须传递 productId,无需在微信配置。该参数在 V3 简化,无需传递! | ||||
|         WxPayUnifiedOrderRequest request = buildPayUnifiedOrderRequestV2(reqDTO) | ||||
|                 .setProductId(reqDTO.getOutTradeNo()); // V2 必须传递 productId,无需在微信配置。该参数在 V3 简化,无需传递! | ||||
|         // 执行请求 | ||||
|         WxPayNativeOrderResult response = client.createOrder(request); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 YunaiV
					YunaiV