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

添加日志 打印

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