Commit 5dd2a06b authored by David黄金龙's avatar David黄金龙

1、修改错误

2、添加h5中需要的两个参数
parent 1e0b945f
......@@ -40,7 +40,7 @@ class YHBaseViewModel {
var smallWhiteBarInfo : YHSmallWhiteBarInfo?
// MARK: 接口
//3、orc识别 中国身份证 正/反面
//3、ocr识别 中国身份证 正/反面
func getChinaCardInfoByOcr(_ url: String, isBack: Int, callBackBlock:@escaping (_ success: Bool, _ model:YHCardOcrModel?)->()) {
let strUrl = YHBaseUrlManager.shared.curOssURL() + YHAllApiName.OCR.cn
let params: [String : Any] = ["url": url,
......@@ -67,7 +67,7 @@ class YHBaseViewModel {
}
}
//2.2、orc识别 港澳通行证 背面
//2.2、ocr识别 港澳通行证 背面
func getHKCardBackInfoByOcr(_ url: String, isBack: Int, callBackBlock:@escaping (_ success: Bool, _ model:YHCardOcrModel?)->()) {
let strUrl = YHBaseUrlManager.shared.curOssURL() + YHAllApiName.OCR.hkmacowBackInfoApi
let params: [String : Any] = ["url": url,
......@@ -95,7 +95,7 @@ class YHBaseViewModel {
}
}
//2、orc识别 港澳通行证 正面
//2、ocr识别 港澳通行证 正面
func getHKCardInfoByOcr(_ url: String, isBack: Int, callBackBlock:@escaping (_ success: Bool, _ model:YHCardOcrModel?)->()) {
let strUrl = YHBaseUrlManager.shared.curOssURL() + YHAllApiName.OCR.hk
let params: [String : Any] = ["url": url,
......
......@@ -297,6 +297,7 @@ extension YHServiceOrderListView : UITableViewDelegate,UITableViewDataSource {
let indexToInsert = token.index(token.startIndex, offsetBy: 6) //插入位置,这里以第六个字符后面为例
token.insert(contentsOf: addtionString, at: indexToInsert)
url = url + "?paramO=\(self.orderID)" + "&param=" + token
url = url + "&app_platform=ios" + "&app_version=" + UIDevice.appVersion()
printLog("UURL: \(url)")
let vc = YHH5WebViewVC()
vc.url = url
......
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