mirror of
https://github.com/little-snow-fox/react-native-wechat-lib.git
synced 2025-12-06 15:26:49 +08:00
sendAuthRequest接口修改为调用[WXApi sendAuthReq] 否则app store审核不过
This commit is contained in:
parent
b1d5a9d0f2
commit
b4c4ec15ba
@ -173,7 +173,8 @@ RCT_EXPORT_METHOD(sendAuthRequest:(NSString *)scope
|
||||
callback(@[success ? [NSNull null] : INVOKE_FAILED]);
|
||||
return;
|
||||
};
|
||||
[WXApi sendReq:req completion:completion];
|
||||
UIViewController *rootViewController = [UIApplication sharedApplication].keyWindow.rootViewController;
|
||||
[WXApi sendAuthReq:req viewController:rootViewController delegate:self completion:completion];
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(sendSuccessResponse:(RCTResponseSenderBlock)callback)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user