File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 77import org .testng .annotations .BeforeMethod ;
88import org .testng .annotations .Test ;
99
10+ import java .util .concurrent .locks .Lock ;
11+
1012import static org .assertj .core .api .Assertions .assertThat ;
1113import static org .assertj .core .api .Assertions .assertThatThrownBy ;
1214
@@ -183,7 +185,7 @@ public String getAccessToken(boolean forceRefresh) throws WxErrorException {
183185 @ Override
184186 public String getMsgAuditAccessToken (boolean forceRefresh ) throws WxErrorException {
185187 // 使用锁机制
186- var lock = getWxCpConfigStorage ().getMsgAuditAccessTokenLock ();
188+ Lock lock = getWxCpConfigStorage ().getMsgAuditAccessTokenLock ();
187189 lock .lock ();
188190 try {
189191 // 检查是否需要刷新
You can’t perform that action at this time.
0 commit comments