Jelajahi Sumber

测试推送问题

koul 7 tahun lalu
induk
melakukan
c835ab7d27

+ 1 - 1
applications/wechat/wechat-server/src/main/java/com/usoftchina/smartschool/wechat/service/impl/WxPushServiceImpl.java

@@ -57,7 +57,7 @@ public class WxPushServiceImpl implements WxPushService{
             params.put("appid", appId);
             params.put("secret", secret);
             params.put("grant_type", "client_credential");
-            HttpRequest httpRequest= HttpRequest.get("https://api.weixin.qq.com/cgi-bin/token",params,false);
+            HttpRequest httpRequest= HttpRequest.get("https://api.weixin.qq.com/sns/oauth2/access_token",params,false);
             String content=httpRequest.body();
            // System.err.println("WxPushToken======"+content);
             return content;