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
dfc6263b
Commit
dfc6263b
authored
Aug 24, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 赴港
parent
4bc22a28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
20 deletions
+15
-20
YHCertificateAppointViewController.swift
...cate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
+8
-14
YHMyViewController.swift
...alaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
+7
-6
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/CustomerService/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/C/YHCertificateAppointViewController.swift
View file @
dfc6263b
...
...
@@ -47,9 +47,7 @@ class YHCertificateAppointViewController: YHBaseViewController {
var
reservationToHK
:
Int
=
0
// 0没有预约 1已经预約
// 申请人是否统一赴港激活签证 本地记录的开关
var
isAllMembersGo
:
Bool
=
true
// 默认一起去
var
semaphore
=
DispatchSemaphore
(
value
:
1
)
lazy
var
tableView
:
UITableView
=
{
let
tableView
=
UITableView
(
frame
:
.
zero
,
style
:
.
grouped
)
tableView
.
estimatedSectionHeaderHeight
=
0.01
...
...
@@ -833,41 +831,37 @@ extension YHCertificateAppointViewController {
// 请求抢号成功后的反馈回执文件私链URL组对应的公链组
func
requestSuccessScriptUrls
()
{
printLog
(
"XYZ0"
)
if
self
.
successList
.
count
<=
0
{
return
}
self
.
semaphore
=
DispatchSemaphore
(
value
:
1
)
let
semaphore
=
DispatchSemaphore
(
value
:
1
)
DispatchQueue
.
global
()
.
async
{
for
model
in
self
.
successList
{
var
publicUrls
:[
String
]
=
[]
for
privateUrl
in
model
.
receipts
{
for
(
index
,
privateUrl
)
in
model
.
receipts
.
enumerated
()
{
// 信号-1 如果信号<0 则阻塞等待
self
.
semaphore
.
wait
()
semaphore
.
wait
()
self
.
viewModel
.
getPublicImageUrl
(
privateUrl
)
{
success
,
error
in
printLog
(
"success:
\n\(
success
)
"
)
if
let
publicUrl
=
success
{
printLog
(
"ABC: success"
)
publicUrls
.
append
(
publicUrl
)
}
else
{
// 私链转公链失败 只有在点击对应的回执图片的时候再次请求公链
printLog
(
"ABC: failed"
)
publicUrls
.
append
(
""
)
}
// 释放信号+1
se
lf
.
se
maphore
.
signal
()
semaphore
.
signal
()
}
}
se
lf
.
se
maphore
.
wait
()
semaphore
.
wait
()
model
.
publicReceipts
=
publicUrls
se
lf
.
se
maphore
.
signal
()
semaphore
.
signal
()
}
DispatchQueue
.
main
.
async
{
self
.
tableView
.
reloadData
()
self
.
semaphore
.
wait
()
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/C/YHMyViewController.swift
View file @
dfc6263b
...
...
@@ -336,12 +336,13 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
return
}
// if true {
// let vc = YHCertificateAppointViewController()
// vc.orderId = 151085
// self.navigationController?.pushViewController(vc)
// return
// } //for test dy
if
true
{
let
vc
=
YHCertificateAppointViewController
()
vc
.
orderId
=
151296
// 151296
self
.
navigationController
?
.
pushViewController
(
vc
)
return
}
//for test dy
let
item
:
PersonalModuleItem
=
items
[
indexPath
.
row
]
...
...
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