Commit 93f5d653 authored by pete谢兆麟's avatar pete谢兆麟

工作经验OCR识别修改

parent 3c28dfad
......@@ -391,7 +391,7 @@ class YHWorkExperienceViewModel: YHBaseViewModel {
// let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.WorkExperience.ocrFileContent + "?file_url=\(url)"
let strUrl = YHBaseUrlManager.shared.curOssURL() + YHAllApiName.OCR.normal
let params: [String : Any] = ["url": url]
let _ = YHNetRequest.getRequest(url: strUrl,params: params) { [weak self] json, code in
let _ = YHNetRequest.postRequest(url: strUrl,params: params) { [weak self] json, code in
//1. json字符串 转 对象
guard let self = self else { return }
if json.code == 200 {
......
......@@ -69,7 +69,7 @@ class YHWorkIntroductionViewModel: YHBaseViewModel {
let strUrl = YHBaseUrlManager.shared.curOssURL() + YHAllApiName.OCR.normal
let param: [String: Any] = ["url": url]
let _ = YHNetRequest.getRequest(url: strUrl,params:param) { [weak self] json, code in
let _ = YHNetRequest.postRequest(url: strUrl,params:param) { [weak self] json, code in
//1. json字符串 转 对象
guard let self = self else { return }
if json.code == 200 {
......
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