Commit becb29cc authored by Alex朱枝文's avatar Alex朱枝文

银河管家增加评价卡片跳转

parent bb44d936
......@@ -137,10 +137,28 @@ extension YHButlerServiceManager {
*/
if !jsonObject.isEmpty {
let msgType: String = jsonObject["msg_type"] as? String ?? ""
let navH5Url: String = jsonObject["nav_h5_url"] as? String ?? ""
let orderID : Int = jsonObject["order_id"] as? Int ?? -1
let type : Int = jsonObject["type"] as? Int ?? -1
let batchId: Int = jsonObject["batch_id"] as? Int ?? 0
if orderID > -1,type > -1 {
if msgType == "card_msg", navH5Url.count > 0 {
var url = ""
if YHLoginManager.shared.isLogin() {
let token = YHLoginManager.shared.h5Token
if url.contains("?") {
url = navH5Url + "&param=" + token
} else {
url = navH5Url + "?param=" + token
}
} else {
url = navH5Url
}
let vc = YHH5WebViewVC()
vc.url = url
UIViewController.current?.navigationController?.pushViewController(vc)
return QYLinkClickActionPolicy.cancel
} else if orderID > -1,type > -1 {
YHServiceOrderListView.jumpToMessageController(type: type, orderId: orderID, batchId)
return QYLinkClickActionPolicy.cancel
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment