iOS支付成功之后调回APP
// 一直不触发这个方法
func scene(_ scene: UIScene, continue userActivity: NSUserActivity) {
if WXApi.handleOpenUniversalLink(userActivity, delegate: self) {
print("handleOpenUniversalLink \(true)")
} else {
print("handleOpenUniversalLink \(false)")
}
}
// 每次都只是触发这个方法
func scene(_ scene: UIScene, willContinueUserActivityWithType userActivityType: String) {
if WXApi.handleOpenUniversalLink(NSUserActivity(activityType: userActivityType), delegate: self) {
print("handleOpenUniversalLink \(true)")
} else {
// 一直是false
print("handleOpenUniversalLink \(false)")
}
}