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

按着步骤一步步来,微信分享之后的成功失败结果拿不到,completionHandler没进去 #122

Open
ghost opened this issue Apr 13, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Apr 13, 2018

如题,有人遇到这个问题吗

@ghost ghost closed this as completed Apr 13, 2018
@ghost ghost reopened this Apr 13, 2018
@ghost
Copy link
Author

ghost commented Apr 13, 2018

@nixzhu 请问知道原因吗?MonkeyKing.handleOpenURL(url)的时候在这里dict为nil了
if let data = UIPasteboard.general.data(forPasteboardType: "content") {
if let dict = try? PropertyListSerialization.propertyList(from: data, options: PropertyListSerialization.MutabilityOptions(), format: nil) as? [String: Any] {

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

@ghost ghost closed this as completed Apr 13, 2018
@ghost ghost reopened this Apr 13, 2018
@ghost ghost closed this as completed Apr 13, 2018
@ghost ghost reopened this Apr 13, 2018
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

0 participants