Commit 61f94bde authored by David黄金龙's avatar David黄金龙

一处代码优化

parent 6b87befb
...@@ -32,8 +32,11 @@ extension YHPrincleViewModel { ...@@ -32,8 +32,11 @@ extension YHPrincleViewModel {
//获取获批信列表 //获取获批信列表
func getApprovalLetter(param:[String : Any],callback:((_ success: Bool,_ error:YHErrorModel?)->())?) { func getApprovalLetter(param:[String : Any],callback:((_ success: Bool,_ error:YHErrorModel?)->())?) {
YHHUD.show(.progress(message: ""))
let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Principle.getApprovalLetterApi let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Principle.getApprovalLetterApi
let _ = YHNetRequest.getRequest(url: strUrl,params: param) { [weak self] json, code in let _ = YHNetRequest.getRequest(url: strUrl,params: param) { [weak self] json, code in
YHHUD.hide()
//1. json字符串 转 对象 //1. json字符串 转 对象
guard let self = self else { return } guard let self = self else { return }
printLog("model 是 ==> \(json)") printLog("model 是 ==> \(json)")
......
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