Skip to content

Commit

Permalink
紧急适配2.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
MustangYM committed Jul 27, 2020
1 parent e237ac8 commit cd67234
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
Binary file modified WeChatExtension/Rely/Plugin/WeChatExtension.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
11 changes: 8 additions & 3 deletions WeChatExtension/WeChatExtension/Sources/Hook/WeChat+hook.m
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,14 @@ - (void)hook_mainViewControllerDidLoad {
});

//紧急适配2.4.2
MMSessionMgr *sessionMgr = [[objc_getClass("MMServiceCenter") defaultCenter] getService:objc_getClass("MMSessionMgr")];
[sessionMgr loadSessionData];
[sessionMgr loadBrandSessionData];
if (LargerOrEqualVersion(@"2.4.2")) {
BOOL autoAuthEnable = [[TKWeChatPluginConfig sharedConfig] autoAuthEnable];
if (autoAuthEnable) {
MMSessionMgr *sessionMgr = [[objc_getClass("MMServiceCenter") defaultCenter] getService:objc_getClass("MMSessionMgr")];
[sessionMgr loadSessionData];
[sessionMgr loadBrandSessionData];
}
}
}


Expand Down

0 comments on commit cd67234

Please sign in to comment.