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
213b8da0
Commit
213b8da0
authored
Aug 21, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 测试逻辑
parent
b135bcdd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
24 deletions
+42
-24
YHVisaPaymentVC.swift
...ificate(办证段)/VisaPayment(4电子签字缴费)/C/YHVisaPaymentVC.swift
+42
-24
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/VisaPayment(4电子签字缴费)/C/YHVisaPaymentVC.swift
View file @
213b8da0
...
@@ -74,45 +74,63 @@ class YHVisaPaymentVC: YHBaseViewController {
...
@@ -74,45 +74,63 @@ class YHVisaPaymentVC: YHBaseViewController {
private
extension
YHVisaPaymentVC
{
private
extension
YHVisaPaymentVC
{
func
loadData
()
{
func
loadData
()
{
if
let
orderID
=
UserDefaults
.
standard
.
value
(
forKey
:
"orderIdForPreview"
)
{
// if let orderID = UserDefaults.standard.value(forKey: "orderIdForPreview") {} //for test hjl
// let id = orderID
let
id
=
133874
//for test hjl
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
133874
]
//for test hjl
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
id
]
viewModel
.
getVisaPaymentList
(
params
)
{
success
,
error
in
viewModel
.
getVisaPaymentList
(
params
)
{
success
,
error
in
if
success
{
if
success
{
}
else
{
}
else
{
}
self
.
tableView
.
reloadData
()
self
.
getPayUpdateStatus
()
}
}
self
.
tableView
.
reloadData
()
self
.
getPayUpdateStatus
()
}
}
}
}
func
postPaymentResult
()
{
func
postPaymentResult
()
{
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
133874
]
//for test hjl
if
let
orderID
=
UserDefaults
.
standard
.
value
(
forKey
:
"orderIdForPreview"
)
{
viewModel
.
postPaymentResult
(
params
)
{
success
,
error
in
// let id = orderID
if
success
{
let
id
=
133874
//for test hjl
YHHUD
.
flash
(
message
:
"预计会在1个工作日内更新缴费结果"
)
}
else
{
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
id
]
//for test hjl
viewModel
.
postPaymentResult
(
params
)
{
success
,
error
in
if
success
{
YHHUD
.
flash
(
message
:
"预计会在1个工作日内更新缴费结果"
)
}
else
{
}
self
.
getPayUpdateStatus
()
}
}
self
.
getPayUpdateStatus
()
}
}
}
}
func
getPayUpdateStatus
()
{
func
getPayUpdateStatus
()
{
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
133874
]
//for test hjl
viewModel
.
getPaymentUpdateStatus
(
params
)
{
success
,
error
in
if
let
orderID
=
UserDefaults
.
standard
.
value
(
forKey
:
"orderIdForPreview"
)
{
if
success
{
// let id = orderID
let
id
=
133874
//for test hjl
}
else
{
let
params
:
[
String
:
Any
]
=
[
"order_id"
:
id
]
//for test hjl
viewModel
.
getPaymentUpdateStatus
(
params
)
{
success
,
error
in
if
success
{
}
else
{
}
self
.
setButtonRightStatus
()
}
}
self
.
setButtonRightStatus
()
}
}
}
}
...
...
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