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