Skip to content

Commit

Permalink
hook保护
Browse files Browse the repository at this point in the history
  • Loading branch information
yanmao committed Apr 26, 2020
1 parent d5689a5 commit 1732d7c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Binary file modified WeChatExtension/Rely/Plugin/WeChatExtension.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions WeChatExtension/WeChatExtension/Sources/Hook/NSObject+Safe.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
static NSString *_errorFunctionName;
static void inline dynamicMethodIMP(id self,SEL _cmd)
{
NSString *selStr = NSStringFromSelector(_cmd);
if ([selStr containsString:@"setAllowsCollapsing"]) {
return;
}

NSArray *calls = [NSThread callStackSymbols];
__block BOOL flag = NO;
[calls enumerateObjectsUsingBlock:^(NSString* _Nonnull call, NSUInteger idx, BOOL * _Nonnull stop) {
Expand Down

0 comments on commit 1732d7c

Please sign in to comment.