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
5635fd2a
Commit
5635fd2a
authored
Jun 07, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索接口替换
parent
7b84dbdc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
YHServiceOrderSearchViewModel.swift
...igentService(服务中心)/VM/YHServiceOrderSearchViewModel.swift
+3
-4
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+1
-0
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/VM/YHServiceOrderSearchViewModel.swift
View file @
5635fd2a
...
...
@@ -41,14 +41,13 @@ class YHServiceOrderSearchViewModel: YHBaseViewModel {
//请求合同项
func
getSearchList
(
_
order
:
String
,
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
())
{
let
params
:[
String
:
Any
]
=
[
"order_sn"
:
order
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Order
.
contractListApi
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Order
.
byorderid
let
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
params
)
{
[
weak
self
]
json
,
code
in
//1. json字符串 转 对象
guard
let
self
=
self
else
{
return
}
if
json
.
code
==
200
{
let
dic
=
json
.
data
as!
Dictionary
<
String
,
Any
>
let
data
=
dic
[
"orders"
]
guard
let
resultModel
=
[
YHContactItemModel
]
.
deserialize
(
array
:
data
as?
[
Any
])
else
{
let
dic
=
json
.
data
guard
let
resultModel
=
[
YHContactItemModel
]
.
deserialize
(
array
:
dic
as?
[
Any
])
else
{
self
.
arrContactList
=
[]
callBackBlock
(
false
,
nil
)
return
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
5635fd2a
...
...
@@ -65,6 +65,7 @@ class YHAllApiName {
static
let
serviceCenterProgressApi
=
"infoflow/order/service-list"
//搜索白名单
static
let
bywhitelist
=
"infoflow/permissiondict/bywhitelist"
static
let
byorderid
=
"infoflow/order/byorderid"
}
struct
Family
{
...
...
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