We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4abffde commit 8cf8593Copy full SHA for 8cf8593
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/BaseWxMpServiceImpl.java
@@ -267,10 +267,10 @@ public String getAccessToken(boolean forceRefresh) throws WxErrorException {
267
boolean locked = false;
268
try {
269
do {
270
- locked = lock.tryLock(100, TimeUnit.MILLISECONDS);
271
if (!forceRefresh && !this.getWxMpConfigStorage().isAccessTokenExpired()) {
272
return this.getWxMpConfigStorage().getAccessToken();
273
}
+ locked = lock.tryLock(100, TimeUnit.MILLISECONDS);
274
if (!locked && System.currentTimeMillis() > timeOutMillis) {
275
throw new InterruptedException("获取accessToken超时:获取时间超时");
276
0 commit comments