Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
e7949beb
Commit
e7949beb
authored
Feb 26, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 接口名称
parent
1533a445
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
18 deletions
+24
-18
YHBasicInfoFillViewController.swift
...seInformation(基本资料)/C/YHBasicInfoFillViewController.swift
+22
-16
YHBasicInfoFillViewModel.swift
...)/BaseInformation(基本资料)/VM/YHBasicInfoFillViewModel.swift
+2
-2
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/BaseInformation(基本资料)/C/YHBasicInfoFillViewController.swift
View file @
e7949beb
...
...
@@ -107,19 +107,25 @@ extension YHBasicInfoFillViewController {
var
applicant
:
[
String
:
Any
]
=
[:]
for
(
index0
,
item0
)
in
item
.
arrQuestionItem
.
enumerated
()
{
if
index0
==
0
{
let
value
=
[
"answer"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
applicant
.
updateValue
(
value
,
forKey
:
"has_breaking_law"
)
}
else
if
index0
==
1
{
let
value
=
[
"answer"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
let
value
=
[
"has"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
applicant
.
updateValue
(
value
,
forKey
:
"has_conviction"
)
}
else
if
index0
==
2
{
let
value
=
[
"answer"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
applicant
.
updateValue
(
value
,
forKey
:
"has_deny"
)
}
else
if
index0
==
3
{
let
value
=
[
"answer"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
}
else
if
index0
==
1
{
let
value
=
[
"has"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
applicant
.
updateValue
(
value
,
forKey
:
"has_departure"
)
}
else
if
index0
==
4
{
let
value
=
[
"answer"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
}
else
if
index0
==
2
{
let
value
=
[
"has"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
applicant
.
updateValue
(
value
,
forKey
:
"has_deny"
)
}
else
if
index0
==
3
{
let
value
=
[
"has"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
applicant
.
updateValue
(
value
,
forKey
:
"has_breaking_law"
)
}
else
if
index0
==
4
{
let
value
=
[
"has"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
applicant
.
updateValue
(
value
,
forKey
:
"has_other_id"
)
}
else
{
printLog
(
"其他数据没有处理"
)
...
...
@@ -132,10 +138,10 @@ extension YHBasicInfoFillViewController {
var
applicant
:
[
String
:
Any
]
=
[:]
for
(
index0
,
item0
)
in
item
.
arrQuestionItem
.
enumerated
()
{
if
index0
==
0
{
let
value
=
[
"
answer
"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
let
value
=
[
"
has
"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
applicant
.
updateValue
(
value
,
forKey
:
"child_deny"
)
}
else
if
index0
==
1
{
let
value
=
[
"
answer
"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
let
value
=
[
"
has
"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
applicant
.
updateValue
(
value
,
forKey
:
"child_departure"
)
}
else
{
printLog
(
"其他数据没有处理"
)
...
...
@@ -154,10 +160,10 @@ extension YHBasicInfoFillViewController {
var
applicant
:
[
String
:
Any
]
=
[:]
for
(
index0
,
item0
)
in
item
.
arrQuestionItem
.
enumerated
()
{
if
index0
==
0
{
let
value
=
[
"
answer
"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
let
value
=
[
"
has
"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
applicant
.
updateValue
(
value
,
forKey
:
"child_deny"
)
}
else
if
index0
==
1
{
let
value
=
[
"
answer
"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
let
value
=
[
"
has
"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
applicant
.
updateValue
(
value
,
forKey
:
"child_departure"
)
}
else
{
printLog
(
"其他数据没有处理"
)
...
...
@@ -174,7 +180,7 @@ extension YHBasicInfoFillViewController {
var
applicant
:
[
String
:
Any
]
=
[:]
for
(
index0
,
item0
)
in
item
.
arrQuestionItem
.
enumerated
()
{
if
index0
==
0
{
let
value
=
[
"
answer
"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
let
value
=
[
"
has
"
:
item0
.
answer
,
"info"
:
item0
.
answer
==
"Y"
?
item0
.
info
:
""
]
applicant
.
updateValue
(
value
,
forKey
:
"background_member"
)
}
else
{
printLog
(
"其他数据没有处理"
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/ServiceProcess(流程)/BaseInformation(基本资料)/VM/YHBasicInfoFillViewModel.swift
View file @
e7949beb
...
...
@@ -149,7 +149,7 @@ extension YHBasicInfoFillViewModel {
// let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Basics.basicInfoApi
//http://192.168.25.21:10087 梁杰ip
let
strUrl
=
"http://192.168.25.21:10087/"
+
"basics/get_basics"
let
strUrl
=
"http://192.168.25.21:10087/"
+
"
infoflow/
basics/get_basics"
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
...
...
@@ -180,7 +180,7 @@ extension YHBasicInfoFillViewModel {
func
saveBasicInfo
(
params
:[
String
:
Any
],
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
// let strUrl = YHBaseUrlManager.shared.curURL() + YHAllApiName.Basics.updateBasicInfoApi
let
strUrl
=
"http://192.168.25.21:10087/"
+
"basics/update_basics"
let
strUrl
=
"http://192.168.25.21:10087/"
+
"
infoflow/
basics/update_basics"
let
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
self
!=
nil
else
{
return
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment