From 9426e4ddeb77df1276160d0580c4bfbc02124d36 Mon Sep 17 00:00:00 2001 From: walker-sheng Date: Wed, 30 Dec 2020 14:38:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BE=AE=E4=BF=A1=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E8=8E=B7=E5=8F=96token=E6=8E=A5=E5=8F=A3=E8=B0=83?= =?UTF-8?q?=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../joylink/rtss/wechat/MiniProgramAccessTokenManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/club/joylink/rtss/wechat/MiniProgramAccessTokenManager.java b/src/main/java/club/joylink/rtss/wechat/MiniProgramAccessTokenManager.java index e4050e729..96fff878b 100644 --- a/src/main/java/club/joylink/rtss/wechat/MiniProgramAccessTokenManager.java +++ b/src/main/java/club/joylink/rtss/wechat/MiniProgramAccessTokenManager.java @@ -61,14 +61,15 @@ public class MiniProgramAccessTokenManager { // } // } - public static final String URL_GET_ACCESS_TOKEN = "https://api.joylink.club/wechatservice/api/accessToken?clientid=%s&secret=%s&checksum=%s"; + public static final String URL_GET_ACCESS_TOKEN = "https://api.joylink.club/wechatservice/api/accessToken?clientid=%s&secret=%s&checksum=%s&appid=%s"; public static final String clientId = "rtss"; public static final String secret = "joylink-0503"; + public static final String appid = "wxe9150dbbcbf9440b"; public String getAccessToken() { String url = String.format(URL_GET_ACCESS_TOKEN, - clientId, secret, EncryptUtil.md5(String.format("%s:%s", clientId, secret))); + clientId, secret, EncryptUtil.md5(String.format("%s:%s", clientId, secret)), appid); CommonJsonResponse response = this.restTemplate.getForObject(url, CommonJsonResponse.class); String accessToken = (String) response.getData(); if (!StringUtils.hasText(accessToken)) {