使用 微信 稳定版 Access token, 避免 Austin 与 业务方使用同一 appId 时, 出现 token 互踢现象

pull/48/head
sky.huang 12 months ago
parent 5f12b96c19
commit 6563a01903

@ -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;
}

@ -38,7 +38,7 @@
<maven.compiler.source>${target.java.version}</maven.compiler.source>
<maven.compiler.target>${target.java.version}</maven.compiler.target>
<log4j.version>2.17.1</log4j.version>
<weixin-java>4.3.0</weixin-java>
<weixin-java>4.5.3.B</weixin-java>
</properties>
<dependencyManagement>

Loading…
Cancel
Save