Commit 4b1b596d authored by David黄金龙's avatar David黄金龙

添加日志 打印

parent cd55137a
...@@ -17,23 +17,23 @@ class YHInformationPerfectModel { ...@@ -17,23 +17,23 @@ class YHInformationPerfectModel {
isFirstCell = false isFirstCell = false
isLastestCell = false isLastestCell = false
if type == 1 { if type == 0 {
isFirstCell = true isFirstCell = true
name = "主申请人信息" name = "主申请人信息"
icon = "zsqrxx_icon" icon = "zsqrxx_icon"
} else if type == 2 { } else if type == 1 {
name = "家庭成员信息" name = "家庭成员信息"
icon = "jtcyxx_icon" icon = "jtcyxx_icon"
} else if type == 3 { } else if type == 2 {
name = "基本资料" name = "基本资料"
icon = "jbzl_icon" icon = "jbzl_icon"
} else if type == 4 { } else if type == 3 {
name = "学历/专业资格" name = "学历/专业资格"
icon = "xlzyzg_icon" icon = "xlzyzg_icon"
} else if type == 5 { } else if type == 4 {
name = "工作经验" name = "工作经验"
icon = "gzjy_icon" icon = "gzjy_icon"
} else if type == 6 { } else if type == 5 {
name = "其他信息" name = "其他信息"
icon = "qtxx_icon" icon = "qtxx_icon"
isLastestCell = true isLastestCell = true
......
...@@ -13,5 +13,4 @@ struct YHPersonInfoFillStepModel: SmartCodable { ...@@ -13,5 +13,4 @@ struct YHPersonInfoFillStepModel: SmartCodable {
var step : Int = 0 var step : Int = 0
var applicantName : String = "" var applicantName : String = ""
var sweet_notify_status : Int = 0 var sweet_notify_status : Int = 0
} }
...@@ -101,6 +101,8 @@ extension YHOtherInfoFillViewController { ...@@ -101,6 +101,8 @@ extension YHOtherInfoFillViewController {
if let param = model?.toDictionary() { if let param = model?.toDictionary() {
printLog("param ==>")
printLog(param) printLog(param)
otherInfoVM.saveOtherInfo(params: param) { success, error in otherInfoVM.saveOtherInfo(params: param) { success, error in
......
...@@ -192,7 +192,7 @@ extension YHServiceCenterMainViewModel { ...@@ -192,7 +192,7 @@ extension YHServiceCenterMainViewModel {
informationFillStepModel = resultModel informationFillStepModel = resultModel
myInfoFillStep = resultModel.step myInfoFillStep = resultModel.step
let arr = [1,2,3,4,5,6] let arr = [0,1,2,3,4,5]
let target = myInfoFillStep let target = myInfoFillStep
for item in arr { for item in arr {
let model = YHInformationPerfectModel() let model = YHInformationPerfectModel()
......
...@@ -94,7 +94,7 @@ class YHNetRequest: NSObject { ...@@ -94,7 +94,7 @@ class YHNetRequest: NSObject {
requestHeader.add(name:"sign",value:sign) requestHeader.add(name:"sign",value:sign)
requestHeader.add(name: "token", value: YHLoginManager.shared.userModel?.token ?? "-") requestHeader.add(name: "token", value: YHLoginManager.shared.userModel?.token ?? "-")
// testToken(&requestHeader) //for test hjl 使用固定token testToken(&requestHeader) //for test hjl 使用固定token
headers = requestHeader headers = requestHeader
} }
...@@ -227,12 +227,16 @@ class YHNetRequest: NSObject { ...@@ -227,12 +227,16 @@ class YHNetRequest: NSObject {
break break
} }
#if DEBUG
printLog("网络返回的数据 ===> ")
printLog(serverDict)
#endif
if statusCode == 200 { if statusCode == 200 {
guard let suclock = self.success else { return } guard let suclock = self.success else { return }
let dittt = self.handleJsonObjectNullValue(serverDict) let dittt = self.handleJsonObjectNullValue(serverDict)
suclock(dittt as? [String : Any] ?? [:], statusCode) suclock(dittt as? [String : Any] ?? [:], statusCode)
// suclock(serverDict, statusCode) // suclock(serverDict, statusCode)
} else { } else {
guard let errorBlock = self.failure else { return } guard let errorBlock = self.failure else { return }
......
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