Prechádzať zdrojové kódy

feat : 调试修改

bilingfeng 2 rokov pred
rodič
commit
7f658158b4

+ 11 - 1
game-module/game-sdk/src/main/java/com/zanxiang/sdk/service/Impl/GameAppletServiceImpl.java

@@ -123,7 +123,17 @@ public class GameAppletServiceImpl extends ServiceImpl<GameAppletMapper, GameApp
         Map<String, Object> linkMap = new HashMap<>(4);
         linkMap.put("title", "点我充值");
         linkMap.put("description", "点我充值" + order.getAmount() + "元,用于购买" + order.getAmount() + "元档充值");
-        linkMap.put("url", "http://corp.complaint.zanxiangnet.com/html/wechatPay/index.html?orderId=" + order.getId() + "&appId=wx91208c6c8651a97d");
+        //linkMap.put("url", "http://corp.complaint.zanxiangnet.com/html/wechatPay/index.html?orderId=" + order.getId() + "&appId=wx91208c6c8651a97d");
+
+        URI url = UriComponentsBuilder.fromHttpUrl("http://corp.complaint.zanxiangnet.com/html/wechatPay/index.html")
+                .queryParam("appId", "wx91208c6c8651a97d")
+                .queryParam("orderId", order.getOrderId())
+                .queryParam("amount", order.getAmount())
+                .queryParam("description", "购买" + order.getAmount() + "元档充值")
+                .build().toUri();
+
+        linkMap.put("url", url);
+
         linkMap.put("thumb_url", "https://book.zanxiangnet.com/qc-tip/1.jpg");
 
         paramMap.put("link", linkMap);