Commit ff1a74cb authored by Steven杜宇's avatar Steven杜宇

// 配偶和子女 相关字段bug

parent e44d2a67
...@@ -256,13 +256,7 @@ extension YHChildInfoContainerVC { ...@@ -256,13 +256,7 @@ extension YHChildInfoContainerVC {
func saveInfo(isSubmit:Bool, isShowSubmitMsg:Bool, isShowLoading:Bool, callBack:((Bool)->Void)?) { func saveInfo(isSubmit:Bool, isShowSubmitMsg:Bool, isShowLoading:Bool, callBack:((Bool)->Void)?) {
guard let child = child else { return } guard let child = child else { return }
//【WARNING】此处空数组是为了适配CRM后台 当area为[]且address其他属性为空,adress在CRM存储值为{}
if child.address.area.count <= 0 {
child.address.area = [""]
}
if child.birthPlace.area.count <= 0 {
child.birthPlace.area = [""]
}
guard let info = child.toDictionary() else { return } guard let info = child.toDictionary() else { return }
let dict:[String: Any] = ["order_id":child.orderId, let dict:[String: Any] = ["order_id":child.orderId,
......
...@@ -209,13 +209,7 @@ extension YHSpouseInfoContainerVC { ...@@ -209,13 +209,7 @@ extension YHSpouseInfoContainerVC {
func saveInfo(isSubmit:Bool, isShowSubmitMsg:Bool, isLoading:Bool, callBack:((Bool)->Void)?) { func saveInfo(isSubmit:Bool, isShowSubmitMsg:Bool, isLoading:Bool, callBack:((Bool)->Void)?) {
guard let spouse = spouse else { return } guard let spouse = spouse else { return }
//【WARNING】此处空数组是为了适配CRM后台 当area为[]且address其他属性为空,adress在CRM存储值为{}
if spouse.address.area.count <= 0 {
spouse.address.area = [""]
}
if spouse.birthPlace.area.count <= 0 {
spouse.birthPlace.area = [""]
}
guard let info = spouse.toDictionary() else { return } guard let info = spouse.toDictionary() else { return }
let dict:[String: Any] = ["order_id":orderId, let dict:[String: Any] = ["order_id":orderId,
......
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