您好,我们iOS应用使用微信登陆,登陆失败。
这是我们工程师发的反馈:In WeChat documentation it was described as The third-party app calls this function, switches to WeChat interface and waits for onResp returned from WeChat. WeChat must calls onResp after the asynchronous processing. Possible requests include SendMessageToWXReq, etc. which returns Yes (success) or No (failure) .
So as we understand this method must return NO only in case of failure, but in reality it returns NO and successfully logged in to WeChat. That is the reason we face this issue.
SendAuthReq *req = [[SendAuthReq alloc] init];
req.scope = @“snsapi_userinfo”;
if (![WXApi sendReq:req]) {
[self callAuthCompletionWithResult:nil withError:[self generateAuthorizationError] isCancelled:NO];
}