From 6563a01903963b9236d8ec9b09dd83a8373a9343 Mon Sep 17 00:00:00 2001 From: "sky.huang" Date: Tue, 18 Jul 2023 10:16:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=20=E5=BE=AE=E4=BF=A1=20?= =?UTF-8?q?=E7=A8=B3=E5=AE=9A=E7=89=88=20Access=20token,=20=E9=81=BF?= =?UTF-8?q?=E5=85=8D=20Austin=20=E4=B8=8E=20=E4=B8=9A=E5=8A=A1=E6=96=B9?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=90=8C=E4=B8=80=20appId=20=E6=97=B6,=20?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=20token=20=E4=BA=92=E8=B8=A2=E7=8E=B0?= =?UTF-8?q?=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/java3y/austin/support/utils/AccountUtils.java | 2 ++ pom.xml | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/austin-support/src/main/java/com/java3y/austin/support/utils/AccountUtils.java b/austin-support/src/main/java/com/java3y/austin/support/utils/AccountUtils.java index 1117e38..7640368 100644 --- a/austin-support/src/main/java/com/java3y/austin/support/utils/AccountUtils.java +++ b/austin-support/src/main/java/com/java3y/austin/support/utils/AccountUtils.java @@ -123,6 +123,7 @@ public class AccountUtils { config.setAppId(officialAccount.getAppId()); config.setSecret(officialAccount.getSecret()); config.setToken(officialAccount.getToken()); + config.useStableAccessToken(true); wxMpService.setWxMpConfigStorage(config); return wxMpService; } @@ -138,6 +139,7 @@ public class AccountUtils { WxMaRedisBetterConfigImpl config = new WxMaRedisBetterConfigImpl(redisTemplateWxRedisOps(), SendAccountConstant.MINI_PROGRAM_TOKEN_PREFIX); config.setAppid(miniProgramAccount.getAppId()); config.setSecret(miniProgramAccount.getAppSecret()); + config.useStableAccessToken(true); wxMaService.setWxMaConfig(config); return wxMaService; } diff --git a/pom.xml b/pom.xml index 7692650..0eba504 100644 --- a/pom.xml +++ b/pom.xml @@ -38,7 +38,7 @@ ${target.java.version} ${target.java.version} 2.17.1 - 4.3.0 + 4.5.3.B