From 684423793b2662aaf691a78c0a0184528b66e1c9 Mon Sep 17 00:00:00 2001 From: qi_liang Date: Sun, 29 Mar 2020 13:57:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lq/wechat/util/accessToken/AccessTokenUtil.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/com/lq/wechat/util/accessToken/AccessTokenUtil.java b/src/main/java/com/lq/wechat/util/accessToken/AccessTokenUtil.java index 4e6c65e..c922fd6 100755 --- a/src/main/java/com/lq/wechat/util/accessToken/AccessTokenUtil.java +++ b/src/main/java/com/lq/wechat/util/accessToken/AccessTokenUtil.java @@ -21,10 +21,6 @@ public class AccessTokenUtil { * 微信公众号获取access_token接口 */ public final static String ACCESS_TOKEN_URL = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET"; - - public final static String APPID ="wx76ca7130852c4baa"; - - public final static String APPSECRET = "d87125562b8e60618bc7b3120dfe3583"; /** * 微信公众号access_token在reids的生命周期时间(单位:秒) */ @@ -51,12 +47,7 @@ public class AccessTokenUtil { return accessTokenStr; } - public static void main(String[] args) { - String result = getAccessToken(APPID,APPSECRET); - System.out.println(result); - AccessToken accessToken = JSONObject.parseObject(result,AccessToken.class); - System.out.println(accessToken); - } + }