Skip to content

Commit 4bd5b3c

Browse files
committed
🎨 修复代码
1 parent 14dfe30 commit 4bd5b3c

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

weixin-java-open/src/main/java/me/chanjar/weixin/open/api/impl/WxOpenInMemoryConfigStorage.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,10 @@ private static class Token {
235235
}
236236

237237
private static class WxOpenInnerConfigStorage implements WxMpConfigStorage, WxMaConfig {
238-
private WxOpenConfigStorage wxOpenConfigStorage;
239-
private String appId;
238+
private final WxOpenConfigStorage wxOpenConfigStorage;
239+
private final String appId;
240+
private WxMpHostConfig hostConfig;
241+
240242
/**
241243
* 小程序原始ID
242244
*/
@@ -527,7 +529,12 @@ public boolean autoRefreshToken() {
527529

528530
@Override
529531
public WxMpHostConfig getHostConfig() {
530-
return null;
532+
return this.hostConfig;
533+
}
534+
535+
@Override
536+
public void setHostConfig(WxMpHostConfig hostConfig) {
537+
this.hostConfig = hostConfig;
531538
}
532539
}
533540
}

0 commit comments

Comments
 (0)