guard let url = URL(string: "alipays://platformapi/startapp?appId=68687564") else { return }
if #available(iOS 10.0, *) {
UIApplication.shared.open(url, options: [:]) { flag in
}
} else {
// Fallback on earlier versions
UIApplication.shared.openURL(url)
}
网友评论