Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信登录,用户点击取消之后,回调处理有点问题 #65

Closed
fengqiangboy opened this issue Dec 20, 2016 · 2 comments
Closed

Comments

@fengqiangboy
Copy link

fengqiangboy commented Dec 20, 2016

微信登录,用户点击取消之后,回调处理有点问题,block没有调起来
回调的url是wx4868b35061f87885://platformId=wechat

handleOpenURL(_:)中跑了这段代码

if let dict = try? PropertyListSerialization.propertyList(from: data, options: PropertyListSerialization.MutabilityOptions(), format: nil) as? [String: Any] {

                guard
                    let account = sharedMonkeyKing.accountSet[.weChat],
                    let info = dict?[account.appID] as? [String: Any],
                    let result = info["result"] as? String,
                    let resultCode = Int(result) else {
                        return false
                }

                let success = (resultCode == 0)
                sharedMonkeyKing.deliverCompletionHandler?(success)

                return success
            }

最后 return success

@Limon-O-O
Copy link
Collaborator

修复了,请查看 4d6c301

@fengqiangboy
Copy link
Author

Good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants