Pārlūkot izejas kodu

fix : 客服支付新增参数返回

bilingfeng 1 gadu atpakaļ
vecāks
revīzija
15787b5a88

+ 5 - 0
game-module/game-module-sdk/src/main/java/com/zanxiang/game/module/sdk/service/impl/OrderPayServiceImpl.java

@@ -53,6 +53,9 @@ public class OrderPayServiceImpl implements IOrderPayService {
     @Autowired
     private IPayApplicationService payApplicationService;
 
+    @Value("${payConfig.wxPay.customH5Url}")
+    private String customH5Url;
+
     /**
      * 服务器域名
      */
@@ -162,6 +165,8 @@ public class OrderPayServiceImpl implements IOrderPayService {
             paramMap.put("path", payApplicationDTO.getPath());
             paramMap.put("orderId", product.getOrderId());
             paramMap.put("amount", product.getAmount());
+            paramMap.put("payH5Url", this.customH5Url);
+            paramMap.put("description", "购买" + product.getAmount() + "元档充值");
             if (this.serverUrl.contains("84game")) {
                 paramMap.put("serverUrl", this.serverUrl + "/sdk");
             } else {