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