我的意思是,我已经收到了 Uber 409 冲突激增错误 JSON 响应:
{
"meta": {
"surge_confirmation": {
"href": "https:\/\/api.uber.com\/v1\/surge-confirmations\/e100a670",
"surge_confirmation_id": "e100a670"
}
},
"errors":[
{
"status": 409,
"code": "surge",
"title": "Surge pricing is currently in effect for this product."
}
]
}
所以我应该做的是呈现带有以下 url 的 HTML5 页面,对吗?
"href": "https:\/\/api.uber.com\/v1\/surge-confirmations\/e100a670"
我的两个问题来了:
我想在我的 iOS UIWebView 中显示该页面,但如果用户单击
I ACCEPT HIGHER FEE
HTML5 页面的按钮,我不知道如何关闭 webview,因为我不知道如何利用浪涌确认重定向 url;在我的 OSX chrome 中加载 url 时,单击按钮并重定向到下一页;在 UIWebView 中加载 url 时,单击按钮没有触发任何内容。
非常感谢。