|
@@ -225,6 +225,7 @@ public class WxMpMessageRouter {
|
|
|
if (wxMpService == null) {
|
|
|
wxMpService = this.wxMpService;
|
|
|
}
|
|
|
+
|
|
|
final WxMpService mpService = wxMpService;
|
|
|
if (isMsgDuplicated(wxMessage)) {
|
|
|
|
|
@@ -253,11 +254,11 @@ public class WxMpMessageRouter {
|
|
|
|
|
|
if (rule.isAsync()) {
|
|
|
|
|
|
- String appId = this.wxMpService.getWxMpConfigStorage().getAppId();
|
|
|
+ String appId = mpService.getWxMpConfigStorage().getAppId();
|
|
|
futures.add(
|
|
|
this.executorService.submit(() -> {
|
|
|
|
|
|
- this.wxMpService.switchoverTo(appId);
|
|
|
+ mpService.switchoverTo(appId);
|
|
|
rule.service(wxMessage, context, mpService, WxMpMessageRouter.this.sessionManager,
|
|
|
WxMpMessageRouter.this.exceptionHandler);
|
|
|
WxMpConfigStorageHolder.remove();
|