From 48423704b93781faf59c66884459e57f55b7ecd8 Mon Sep 17 00:00:00 2001 From: 无关风月 <443237572@qq.com> Date: 星期三, 27 八月 2025 16:10:37 +0800 Subject: [PATCH] PC跳转小程序支付 --- ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java index e9b14ca..5b15bbb 100644 --- a/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java +++ b/ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/TIntegralController.java @@ -203,9 +203,10 @@ OutputStream outputStream = null; String accessToken = wxAppletTools.getAccessToken(); try { - String url = "https://api.weixin.qq.com/cgi-bin/wxaapp/createwxaqrcode?access_token=" + accessToken; + String url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token=" + accessToken; Map<String, Object> param = new HashMap<>(); param.put("scene", "phone=" + phonenumber+",amount="+amount); + param.put("path", "chargingPile/payMent/payMent"); param.put("check_path", false); param.put("env_version", "trial"); param.put("width", 200); //二维码尺寸 -- Gitblit v1.7.1