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
c6943933
Commit
c6943933
authored
Dec 30, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS
into develop
parents
c7881c15
cc4d5b26
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
187 additions
and
21 deletions
+187
-21
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-2
YHAliYunLogManager.swift
...Classes/Modules/AliYunLog(阿里云日志)/YHAliYunLogManager.swift
+1
-0
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+4
-0
YHlifeCollectionReusableView.swift
...es/Home(首页)/Life(生活)/V/YHlifeCollectionReusableView.swift
+19
-2
YHHomeBannerView.swift
.../galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerView.swift
+2
-2
YHMyFileListViewController.swift
...MAS(优才)/FileList(文件清单)/C/YHMyFileListViewController.swift
+1
-0
YHMyFileListFooterView.swift
...心)/QMAS(优才)/FileList(文件清单)/V/YHMyFileListFooterView.swift
+16
-0
YHGCMyFileListViewController.swift
...S(高才)/FileList(文件清单)/C/YHGCMyFileListViewController.swift
+1
-0
YHGCMineSchemeViewController.swift
...S(高才)/MyScheme(我的方案)/C/YHGCMineSchemeViewController.swift
+23
-7
YHGCMySchemeModel.swift
...e(服务中心)/TTPS(高才)/MyScheme(我的方案)/M/YHGCMySchemeModel.swift
+1
-1
YHGCFamilyMemberInfoListVC.swift
...流程)/FamilyMember(家庭成员)/C/YHGCFamilyMemberInfoListVC.swift
+1
-0
YHLiveStateViewController.swift
...s/LivestreamSales(直播销售)/C/YHLiveStateViewController.swift
+21
-7
YHPlayerManager.swift
...ses/Modules/LivestreamSales(直播销售)/C/YHPlayerManager.swift
+47
-0
YHLiveStatusModel.swift
...s/Modules/LivestreamSales(直播销售)/M/YHLiveStatusModel.swift
+18
-0
YHLiveSalesViewModel.swift
...dules/LivestreamSales(直播销售)/VM/YHLiveSalesViewModel.swift
+26
-0
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+2
-0
No files found.
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
c6943933
...
@@ -64,6 +64,7 @@
...
@@ -64,6 +64,7 @@
04307BB02D215D1C00ED8E8D
/* YHRecommendedLiveHeader.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04307BAF2D215D1C00ED8E8D
/* YHRecommendedLiveHeader.swift */
;
};
04307BB02D215D1C00ED8E8D
/* YHRecommendedLiveHeader.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04307BAF2D215D1C00ED8E8D
/* YHRecommendedLiveHeader.swift */
;
};
04307BB42D21623300ED8E8D
/* YHRecommendedAppointmentLiveView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04307BB32D21623300ED8E8D
/* YHRecommendedAppointmentLiveView.swift */
;
};
04307BB42D21623300ED8E8D
/* YHRecommendedAppointmentLiveView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04307BB32D21623300ED8E8D
/* YHRecommendedAppointmentLiveView.swift */
;
};
04307BB62D2180C300ED8E8D
/* YHRecommendedOnLiveView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04307BB52D2180C300ED8E8D
/* YHRecommendedOnLiveView.swift */
;
};
04307BB62D2180C300ED8E8D
/* YHRecommendedOnLiveView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04307BB52D2180C300ED8E8D
/* YHRecommendedOnLiveView.swift */
;
};
04307BBC2D22A21E00ED8E8D
/* YHLiveStatusModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
04307BBB2D22A21E00ED8E8D
/* YHLiveStatusModel.swift */
;
};
045C0F7F2D12CA5F00BD2DC0
/* submit_page_scroll.gif in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045C0F4F2D12CA5E00BD2DC0
/* submit_page_scroll.gif */
;
};
045C0F7F2D12CA5F00BD2DC0
/* submit_page_scroll.gif in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045C0F4F2D12CA5E00BD2DC0
/* submit_page_scroll.gif */
;
};
045C0F802D12CA5F00BD2DC0
/* Localizable.xcstrings in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045C0F762D12CA5E00BD2DC0
/* Localizable.xcstrings */
;
};
045C0F802D12CA5F00BD2DC0
/* Localizable.xcstrings in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045C0F762D12CA5E00BD2DC0
/* Localizable.xcstrings */
;
};
045C0F812D12CA5F00BD2DC0
/* img_0.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045C0F5E2D12CA5E00BD2DC0
/* img_0.png */
;
};
045C0F812D12CA5F00BD2DC0
/* img_0.png in Resources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
045C0F5E2D12CA5E00BD2DC0
/* img_0.png */
;
};
...
@@ -1280,7 +1281,7 @@
...
@@ -1280,7 +1281,7 @@
04307BAF2D215D1C00ED8E8D
/* YHRecommendedLiveHeader.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHRecommendedLiveHeader.swift
;
sourceTree
=
"<group>"
;
};
04307BAF2D215D1C00ED8E8D
/* YHRecommendedLiveHeader.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHRecommendedLiveHeader.swift
;
sourceTree
=
"<group>"
;
};
04307BB32D21623300ED8E8D
/* YHRecommendedAppointmentLiveView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHRecommendedAppointmentLiveView.swift
;
sourceTree
=
"<group>"
;
};
04307BB32D21623300ED8E8D
/* YHRecommendedAppointmentLiveView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHRecommendedAppointmentLiveView.swift
;
sourceTree
=
"<group>"
;
};
04307BB52D2180C300ED8E8D
/* YHRecommendedOnLiveView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHRecommendedOnLiveView.swift
;
sourceTree
=
"<group>"
;
};
04307BB52D2180C300ED8E8D
/* YHRecommendedOnLiveView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHRecommendedOnLiveView.swift
;
sourceTree
=
"<group>"
;
};
04
5C09A12D12C2A800BD2DC0
/* YHGCMineSchemeViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHGCMineSchemeViewController
.swift
;
sourceTree
=
"<group>"
;
};
04
307BBB2D22A21E00ED8E8D
/* YHLiveStatusModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHLiveStatusModel
.swift
;
sourceTree
=
"<group>"
;
};
045C0A142D12CA5E00BD2DC0
/* YHBaseViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBaseViewController.swift
;
sourceTree
=
"<group>"
;
};
045C0A142D12CA5E00BD2DC0
/* YHBaseViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBaseViewController.swift
;
sourceTree
=
"<group>"
;
};
045C0A152D12CA5E00BD2DC0
/* YHBaseViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBaseViewModel.swift
;
sourceTree
=
"<group>"
;
};
045C0A152D12CA5E00BD2DC0
/* YHBaseViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHBaseViewModel.swift
;
sourceTree
=
"<group>"
;
};
045C0A162D12CA5E00BD2DC0
/* YHNavigationController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNavigationController.swift
;
sourceTree
=
"<group>"
;
};
045C0A162D12CA5E00BD2DC0
/* YHNavigationController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
YHNavigationController.swift
;
sourceTree
=
"<group>"
;
};
...
@@ -5453,6 +5454,7 @@
...
@@ -5453,6 +5454,7 @@
045C0E932D12CA5E00BD2DC0
/* YHRecordedDetailModel.swift */
,
045C0E932D12CA5E00BD2DC0
/* YHRecordedDetailModel.swift */
,
04307BA92D1FF74500ED8E8D
/* YHRecommendLiveListModel.swift */
,
04307BA92D1FF74500ED8E8D
/* YHRecommendLiveListModel.swift */
,
04307BAB2D1FFC1C00ED8E8D
/* YHShareLiveInfoModel.swift */
,
04307BAB2D1FFC1C00ED8E8D
/* YHShareLiveInfoModel.swift */
,
04307BBB2D22A21E00ED8E8D
/* YHLiveStatusModel.swift */
,
);
);
path
=
M
;
path
=
M
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -6487,7 +6489,6 @@
...
@@ -6487,7 +6489,6 @@
04E86E212B81E9FA00A35F4B
/* Recovered References */
=
{
04E86E212B81E9FA00A35F4B
/* Recovered References */
=
{
isa
=
PBXGroup
;
isa
=
PBXGroup
;
children
=
(
children
=
(
045C09A12D12C2A800BD2DC0
/* YHGCMineSchemeViewController.swift */
,
);
);
name
=
"Recovered References"
;
name
=
"Recovered References"
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -6926,6 +6927,7 @@
...
@@ -6926,6 +6927,7 @@
045C10222D12CA5F00BD2DC0
/* YHMyFileListViewController.swift in Sources */
,
045C10222D12CA5F00BD2DC0
/* YHMyFileListViewController.swift in Sources */
,
045C10232D12CA5F00BD2DC0
/* YHClipperView.swift in Sources */
,
045C10232D12CA5F00BD2DC0
/* YHClipperView.swift in Sources */
,
045C10242D12CA5F00BD2DC0
/* YHAddressViewController.swift in Sources */
,
045C10242D12CA5F00BD2DC0
/* YHAddressViewController.swift in Sources */
,
04307BBC2D22A21E00ED8E8D
/* YHLiveStatusModel.swift in Sources */
,
045C10252D12CA5F00BD2DC0
/* YHPeopleSuccessView.swift in Sources */
,
045C10252D12CA5F00BD2DC0
/* YHPeopleSuccessView.swift in Sources */
,
045C10262D12CA5F00BD2DC0
/* YHLookResignAlertView.swift in Sources */
,
045C10262D12CA5F00BD2DC0
/* YHLookResignAlertView.swift in Sources */
,
045C10272D12CA5F00BD2DC0
/* YHUploadCertificateDetailModel.swift in Sources */
,
045C10272D12CA5F00BD2DC0
/* YHUploadCertificateDetailModel.swift in Sources */
,
...
...
galaxy/galaxy/Classes/Modules/AliYunLog(阿里云日志)/YHAliYunLogManager.swift
View file @
c6943933
...
@@ -26,6 +26,7 @@ enum YHModuleNameValue: String {
...
@@ -26,6 +26,7 @@ enum YHModuleNameValue: String {
case
networkDataType
=
"networkDataType"
// 网络数据
case
networkDataType
=
"networkDataType"
// 网络数据
case
h5InteractionType
=
"h5InteractionType"
// 与H5交互相关
case
h5InteractionType
=
"h5InteractionType"
// 与H5交互相关
case
clickType
=
"clickType"
// 用户点点击事件
case
clickType
=
"clickType"
// 用户点点击事件
case
logTypeError
=
"logTypeError"
// log失败状态
}
}
class
YHAliYunLogManager
{
class
YHAliYunLogManager
{
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
c6943933
...
@@ -77,6 +77,10 @@ class YHHomePageViewController: YHBaseViewController {
...
@@ -77,6 +77,10 @@ class YHHomePageViewController: YHBaseViewController {
super
.
viewWillAppear
(
animated
)
super
.
viewWillAppear
(
animated
)
isTopMostAndVisible
=
true
isTopMostAndVisible
=
true
YHPlayerManager
.
shared
.
handlePageChanged
(
isRecommendPage
:
true
)
YHPlayerManager
.
shared
.
handlePageChanged
(
isRecommendPage
:
true
)
// 没登录不让展示小窗
guard
YHLoginManager
.
shared
.
isLogin
()
else
{
return
}
guard
YHPlayerManager
.
shared
.
isConfigFloating
!=
false
else
{
guard
YHPlayerManager
.
shared
.
isConfigFloating
!=
false
else
{
return
return
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/Life(生活)/V/YHlifeCollectionReusableView.swift
View file @
c6943933
...
@@ -17,6 +17,8 @@ class YHlifeCollectionReusableView: UICollectionReusableView {
...
@@ -17,6 +17,8 @@ class YHlifeCollectionReusableView: UICollectionReusableView {
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
}
}
}
}
private
let
viewModel
=
YHLiveSalesViewModel
()
override
init
(
frame
:
CGRect
)
{
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
super
.
init
(
frame
:
frame
)
setupView
()
setupView
()
...
@@ -93,8 +95,23 @@ extension YHlifeCollectionReusableView: UITableViewDelegate, UITableViewDataSour
...
@@ -93,8 +95,23 @@ extension YHlifeCollectionReusableView: UITableViewDelegate, UITableViewDataSour
return
return
}
}
let
model
=
dataSource
[
indexPath
.
row
]
let
model
=
dataSource
[
indexPath
.
row
]
let
ctl
=
YHLiveAppointmentViewController
(
liveId
:
model
.
live_id
)
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
ctl
)
viewModel
.
getLiveStatus
(
liveId
:
model
.
live_id
)
{
liveInfo
,
error
in
YHHUD
.
hide
()
guard
let
liveInfo
=
liveInfo
else
{
let
ctl
=
YHLiveAppointmentViewController
(
liveId
:
model
.
live_id
)
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
ctl
)
return
}
if
liveInfo
.
status
==
2
{
let
ctl
=
YHLiveAppointmentViewController
(
liveId
:
model
.
live_id
)
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
ctl
)
}
else
{
let
playbackInfo
=
YHPlayerManager
.
PlaybackInfo
(
id
:
model
.
live_id
,
url
:
nil
,
title
:
nil
,
roomId
:
nil
,
uid
:
nil
,
isLive
:
true
,
scene
:
.
fullscreen
)
YHPlayerManager
.
shared
.
enterLive
(
from
:
nil
,
playbackInfo
:
playbackInfo
)
}
}
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/V/YHHomeBannerView.swift
View file @
c6943933
...
@@ -251,7 +251,7 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
...
@@ -251,7 +251,7 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
// YHPlayerManager.shared.leaveChannel(for: player)
// YHPlayerManager.shared.leaveChannel(for: player)
// player.clearPlayerView()
// player.clearPlayerView()
// }
// }
let
playbackInfo
=
YHPlayerManager
.
PlaybackInfo
(
id
:
model
.
live_id
,
url
:
nil
,
title
:
nil
,
roomId
:
nil
,
token
:
model
.
token
,
channelId
:
model
.
rtmp_channel
,
uid
:
model
.
user_id
!=
0
?
UInt
(
model
.
user_id
)
:
nil
,
isLive
:
true
,
scene
:
.
fullscreen
)
let
playbackInfo
=
YHPlayerManager
.
PlaybackInfo
(
id
:
model
.
live_id
,
url
:
nil
,
title
:
nil
,
roomId
:
nil
,
token
:
nil
,
channelId
:
nil
,
uid
:
nil
,
isLive
:
true
,
scene
:
.
fullscreen
)
YHPlayerManager
.
shared
.
enterLive
(
from
:
cell
?
.
bannerImagV
,
playbackInfo
:
playbackInfo
)
YHPlayerManager
.
shared
.
enterLive
(
from
:
cell
?
.
bannerImagV
,
playbackInfo
:
playbackInfo
)
printLog
(
"跳转直播"
)
printLog
(
"跳转直播"
)
case
101
:
//录播
case
101
:
//录播
...
@@ -276,7 +276,7 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
...
@@ -276,7 +276,7 @@ extension YHHomeBannerView: FSPagerViewDataSource, FSPagerViewDelegate {
// player.clearPlayerView()
// player.clearPlayerView()
// }
// }
let
cell
:
YHHomeBannerCollectionViewCell
?
=
pagerView
.
cellForItem
(
at
:
index
)
as?
YHHomeBannerCollectionViewCell
let
cell
:
YHHomeBannerCollectionViewCell
?
=
pagerView
.
cellForItem
(
at
:
index
)
as?
YHHomeBannerCollectionViewCell
let
playbackInfo
=
YHPlayerManager
.
PlaybackInfo
(
id
:
model
.
live_id
,
url
:
model
.
live_pull_url
,
title
:
nil
,
roomId
:
nil
,
token
:
model
.
token
,
channelId
:
model
.
rtmp_channel
,
uid
:
UInt
(
model
.
user_id
)
,
isLive
:
true
,
scene
:
.
fullscreen
)
let
playbackInfo
=
YHPlayerManager
.
PlaybackInfo
(
id
:
model
.
live_id
,
url
:
nil
,
title
:
nil
,
roomId
:
nil
,
token
:
nil
,
channelId
:
nil
,
uid
:
nil
,
isLive
:
true
,
scene
:
.
fullscreen
)
YHPlayerManager
.
shared
.
enterLive
(
from
:
cell
?
.
bannerImagV
,
playbackInfo
:
playbackInfo
)
YHPlayerManager
.
shared
.
enterLive
(
from
:
cell
?
.
bannerImagV
,
playbackInfo
:
playbackInfo
)
case
0
:
//0 不需要跳转
case
0
:
//0 不需要跳转
printLog
(
"0 不需要跳转"
)
printLog
(
"0 不需要跳转"
)
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/FileList(文件清单)/C/YHMyFileListViewController.swift
View file @
c6943933
...
@@ -381,6 +381,7 @@ extension YHMyFileListViewController : UITableViewDelegate, UITableViewDataSourc
...
@@ -381,6 +381,7 @@ extension YHMyFileListViewController : UITableViewDelegate, UITableViewDataSourc
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
if
section
==
items
.
count
-
1
{
if
section
==
items
.
count
-
1
{
let
view
=
YHMyFileListFooterView
(
frame
:
.
zero
)
let
view
=
YHMyFileListFooterView
(
frame
:
.
zero
)
view
.
type
=
.
qmas
return
view
return
view
}
}
let
view
=
UIView
()
let
view
=
UIView
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/FileList(文件清单)/V/YHMyFileListFooterView.swift
View file @
c6943933
...
@@ -8,7 +8,23 @@
...
@@ -8,7 +8,23 @@
import
UIKit
import
UIKit
enum
YHFileListFooterType
:
Int
{
case
qmas
=
0
// 优才
case
ttps
=
1
// 高才
}
class
YHMyFileListFooterView
:
UIView
{
class
YHMyFileListFooterView
:
UIView
{
var
type
:
YHFileListFooterType
=
.
qmas
{
didSet
{
if
type
==
.
qmas
{
thanksLabel
.
text
=
"*感谢您对银河集团的信赖,以上信息均用于香港优才签证申请银河集团承诺对您所提供的信息将绝对保密"
}
else
if
type
==
.
ttps
{
thanksLabel
.
text
=
"*感谢您对银河集团的信赖,以上信息均用于香港高才签证申请银河集团承诺对您所提供的信息将绝对保密"
}
}
}
lazy
var
whiteContentView
:
UIView
=
{
lazy
var
whiteContentView
:
UIView
=
{
let
view
=
UIView
()
let
view
=
UIView
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/FileList(文件清单)/C/YHGCMyFileListViewController.swift
View file @
c6943933
...
@@ -382,6 +382,7 @@ extension YHGCMyFileListViewController : UITableViewDelegate, UITableViewDataSou
...
@@ -382,6 +382,7 @@ extension YHGCMyFileListViewController : UITableViewDelegate, UITableViewDataSou
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
func
tableView
(
_
tableView
:
UITableView
,
viewForFooterInSection
section
:
Int
)
->
UIView
?
{
if
section
==
items
.
count
-
1
{
if
section
==
items
.
count
-
1
{
let
view
=
YHMyFileListFooterView
(
frame
:
.
zero
)
let
view
=
YHMyFileListFooterView
(
frame
:
.
zero
)
view
.
type
=
.
ttps
return
view
return
view
}
}
let
view
=
UIView
()
let
view
=
UIView
()
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MyScheme(我的方案)/C/YHGCMineSchemeViewController.swift
View file @
c6943933
...
@@ -117,16 +117,32 @@ extension YHGCMineSchemeViewController {
...
@@ -117,16 +117,32 @@ extension YHGCMineSchemeViewController {
if
success
==
true
{
if
success
==
true
{
guard
let
model
=
self
.
reqSchemeVM
.
schemeModel
else
{
return
}
guard
let
model
=
self
.
reqSchemeVM
.
schemeModel
else
{
return
}
let
industry
=
model
.
industry
.
defaultStringIfEmpty
()
let
industry
=
model
.
industry
let
model1
=
YHScemeItemModel
(
title
:
"职业界别"
,
mainMessage
:
"根据您目前给来的材料,初步建议您申请的行业:
\n
"
+
industry
,
lightMessage
:
industry
,
subMessage
:
"后续会根据您文书准备的补充情况来最终确定,如有修改会再告知您。"
,
lightFont
:
UIFont
.
PFSC_B
(
ofSize
:
16
))
if
!
industry
.
isEmpty
{
let
contentStr
=
model
.
content
.
reduce
(
""
)
{
partialResult
,
current
in
let
model1
=
YHScemeItemModel
(
title
:
"职业界别"
,
mainMessage
:
"根据您目前给来的材料,初步建议您申请的行业:
\n
"
+
industry
,
lightMessage
:
industry
,
subMessage
:
"后续会根据您文书准备的补充情况来最终确定,如有修改会再告知您。"
,
lightFont
:
UIFont
.
PFSC_B
(
ofSize
:
16
))
partialResult
.
count
>
0
?
partialResult
+
"
\n
"
+
current
:
partialResult
+
current
self
.
dataSource
?
.
append
(
model1
)
}
}
let
model2
=
YHScemeItemModel
(
title
:
"资料清单"
,
buttonTitle
:
"资料清单"
,
mainMessage
:
"这是您的资料清单,请您前往查看。请您在1-2周内上传基础类证件哦,需要重新办理的可以晚些提供。需要注意的点如下:"
,
lightMessage
:
"1-2周内"
,
subMessage
:
"按照您填报的学历信息, 证明文件如下:
\(
contentStr
)
"
)
self
.
dataSource
=
[
model1
,
model2
]
let
contentStr
:
String
if
model
.
content
.
count
>
1
{
contentStr
=
model
.
content
.
enumerated
()
.
reduce
(
""
)
{
partialResult
,
current
in
let
(
index
,
content
)
=
current
return
partialResult
+
"
\n
"
+
"(
\(
index
+
1
)
)"
+
content
}
}
else
if
model
.
content
.
count
>
0
{
contentStr
=
model
.
content
.
reduce
(
""
)
{
partialResult
,
current
in
return
partialResult
+
"
\n
"
+
current
}
}
else
{
contentStr
=
""
}
let
model2
=
YHScemeItemModel
(
title
:
"资料清单"
,
buttonTitle
:
"资料清单"
,
mainMessage
:
"这是您的资料清单,请您前往查看,请您在1-2周内准备好文件并上传:"
,
lightMessage
:
"1-2周内"
,
subMessage
:
"按照您填报的收入信息, 证明文件如下:
\(
contentStr
)
"
)
self
.
dataSource
?
.
append
(
model2
)
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
let
type
=
YHGCApplicationType
(
rawValue
:
model
.
application_type
)
??
.
typeA
let
type
=
YHGCApplicationType
(
rawValue
:
model
.
application_type
)
??
.
typeA
self
.
headView
.
update
(
type
:
type
,
name
:
model
.
username
.
defaultStringIfEmpty
())
let
name
=
model
.
user_name
.
isEmpty
?
"--"
:
"尊敬的
\(
model
.
user_name
)
"
self
.
headView
.
update
(
type
:
type
,
name
:
name
)
}
else
{
}
else
{
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
"请求出错"
)
YHHUD
.
flash
(
message
:
error
?
.
errorMsg
??
"请求出错"
)
}
}
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/MyScheme(我的方案)/M/YHGCMySchemeModel.swift
View file @
c6943933
...
@@ -12,7 +12,7 @@ import SmartCodable
...
@@ -12,7 +12,7 @@ import SmartCodable
class
YHGCMySchemeModel
:
SmartCodable
{
class
YHGCMySchemeModel
:
SmartCodable
{
var
application_type
:
Int
=
0
var
application_type
:
Int
=
0
var
industry
:
String
=
""
var
industry
:
String
=
""
var
username
:
String
=
""
var
user
_
name
:
String
=
""
var
sex
:
Int
=
0
var
sex
:
Int
=
0
var
content
:
[
String
]
=
[]
var
content
:
[
String
]
=
[]
var
certificate_skip_status
:
Bool
=
false
var
certificate_skip_status
:
Bool
=
false
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/TTPS(高才)/ServiceProcess(我的信息流程)/FamilyMember(家庭成员)/C/YHGCFamilyMemberInfoListVC.swift
View file @
c6943933
...
@@ -252,6 +252,7 @@ extension YHGCFamilyMemberInfoListVC {
...
@@ -252,6 +252,7 @@ extension YHGCFamilyMemberInfoListVC {
"info"
:[
"subset_name"
:
""
,
"info"
:[
"subset_name"
:
""
,
"not_fill_number"
:
-
1
,
"not_fill_number"
:
-
1
,
"have_permanent_residency"
:
2
,
"have_permanent_residency"
:
2
,
"nows"
:
1
,
"follow"
:
0
]]
"follow"
:
0
]]
self
.
familyRequest
.
addOrSaveFamilyMember
(
params
:
dict
)
{
[
weak
self
]
success
,
error
in
self
.
familyRequest
.
addOrSaveFamilyMember
(
params
:
dict
)
{
[
weak
self
]
success
,
error
in
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHLiveStateViewController.swift
View file @
c6943933
...
@@ -325,9 +325,26 @@ class YHLiveStateViewController: YHBaseViewController {
...
@@ -325,9 +325,26 @@ class YHLiveStateViewController: YHBaseViewController {
self
.
bookLive
(
liveId
:
model
.
live_id
,
liveView
:
view
)
self
.
bookLive
(
liveId
:
model
.
live_id
,
liveView
:
view
)
}
}
view
.
buttonClickEvent
=
{
view
.
buttonClickEvent
=
{
[
weak
self
]
in
let
ctl
=
YHLiveAppointmentViewController
(
liveId
:
model
.
live_id
)
guard
let
self
=
self
else
{
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
ctl
)
return
}
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
self
.
viewModel
.
getLiveStatus
(
liveId
:
model
.
live_id
)
{
liveInfo
,
error
in
YHHUD
.
hide
()
guard
let
liveInfo
=
liveInfo
else
{
let
ctl
=
YHLiveAppointmentViewController
(
liveId
:
model
.
live_id
)
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
ctl
)
return
}
if
liveInfo
.
status
==
2
{
let
ctl
=
YHLiveAppointmentViewController
(
liveId
:
model
.
live_id
)
UIViewController
.
current
?
.
navigationController
?
.
pushViewController
(
ctl
)
}
else
{
let
playbackInfo
=
YHPlayerManager
.
PlaybackInfo
(
id
:
model
.
live_id
,
url
:
nil
,
title
:
nil
,
roomId
:
nil
,
uid
:
nil
,
isLive
:
true
,
scene
:
.
fullscreen
)
YHPlayerManager
.
shared
.
enterLive
(
from
:
nil
,
playbackInfo
:
playbackInfo
)
}
}
}
}
self
.
bottomView
.
addSubview
(
view
)
self
.
bottomView
.
addSubview
(
view
)
view
.
snp
.
makeConstraints
{
make
in
view
.
snp
.
makeConstraints
{
make
in
...
@@ -348,10 +365,7 @@ class YHLiveStateViewController: YHBaseViewController {
...
@@ -348,10 +365,7 @@ class YHLiveStateViewController: YHBaseViewController {
private
func
bookLive
(
liveId
:
Int
,
liveView
:
YHRecommendedAppointmentLiveView
)
{
private
func
bookLive
(
liveId
:
Int
,
liveView
:
YHRecommendedAppointmentLiveView
)
{
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
YHHUD
.
show
(
.
progress
(
message
:
"加载中..."
))
viewModel
.
postLiveBook
(
id
:
liveId
)
{
[
weak
self
]
success
,
error
in
viewModel
.
postLiveBook
(
id
:
liveId
)
{
success
,
error
in
guard
let
self
=
self
else
{
return
}
YHHUD
.
hide
()
YHHUD
.
hide
()
if
success
{
if
success
{
liveView
.
updateAppointmentButton
(
isAppointmented
:
true
)
liveView
.
updateAppointmentButton
(
isAppointmented
:
true
)
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/C/YHPlayerManager.swift
View file @
c6943933
...
@@ -251,6 +251,28 @@ class YHPlayerManager: NSObject {
...
@@ -251,6 +251,28 @@ class YHPlayerManager: NSObject {
}
}
if
result
==
0
{
if
result
==
0
{
player
.
setJoinInfo
(
token
:
token
,
channelId
:
channelId
,
uid
:
uid
)
player
.
setJoinInfo
(
token
:
token
,
channelId
:
channelId
,
uid
:
uid
)
}
else
{
//-2: #AgoraErrorCodeInvalidArgument
//-3: #AgoraErrorCodeNotReady
//-5: #AgoraErrorCodeRefused
var
errorMsg
=
"加入失败"
switch
result
{
case
-
2
:
errorMsg
=
"AgoraErrorCodeInvalidArgument"
case
-
3
:
errorMsg
=
"AgoraErrorCodeNotReady"
case
-
5
:
errorMsg
=
"AgoraErrorCodeRefused"
default
:
break
}
let
dic
:
[
AnyHashable
:
Any
]
=
[
"type"
:
"joinLiveChannelError"
,
"channelId"
:
channelId
,
"uid"
:
uid
,
"errorMsg"
:
errorMsg
]
YHAliYunLogManager
.
shared
.
addModuleName
(
.
logTypeError
,
remark
:
dic
)
}
}
}
else
{
}
else
{
mainChannelDelegate
?
.
channelId
=
channelId
mainChannelDelegate
?
.
channelId
=
channelId
...
@@ -266,6 +288,28 @@ class YHPlayerManager: NSObject {
...
@@ -266,6 +288,28 @@ class YHPlayerManager: NSObject {
joinSuccess
:
nil
)
joinSuccess
:
nil
)
if
result
==
0
{
if
result
==
0
{
player
.
setJoinInfo
(
token
:
token
,
channelId
:
channelId
,
uid
:
uid
)
player
.
setJoinInfo
(
token
:
token
,
channelId
:
channelId
,
uid
:
uid
)
}
else
{
//-2: #AgoraErrorCodeInvalidArgument
//-3: #AgoraErrorCodeNotReady
//-5: #AgoraErrorCodeRefused
var
errorMsg
=
"加入失败"
switch
result
{
case
-
2
:
errorMsg
=
"AgoraErrorCodeInvalidArgument"
case
-
3
:
errorMsg
=
"AgoraErrorCodeNotReady"
case
-
5
:
errorMsg
=
"AgoraErrorCodeRefused"
default
:
break
}
let
dic
:
[
AnyHashable
:
Any
]
=
[
"type"
:
"joinLiveChannelError"
,
"channelId"
:
channelId
,
"uid"
:
uid
,
"errorMsg"
:
errorMsg
]
YHAliYunLogManager
.
shared
.
addModuleName
(
.
logTypeError
,
remark
:
dic
)
}
}
}
}
}
}
...
@@ -420,6 +464,7 @@ class YHPlayerManager: NSObject {
...
@@ -420,6 +464,7 @@ class YHPlayerManager: NSObject {
}
}
}
}
/*
// 加入频道
// 加入频道
if let token = playbackInfo.token,
if let token = playbackInfo.token,
let channelId = playbackInfo.channelId, let uid = playbackInfo.uid, !token.isEmpty, !channelId.isEmpty {
let channelId = playbackInfo.channelId, let uid = playbackInfo.uid, !token.isEmpty, !channelId.isEmpty {
...
@@ -434,6 +479,8 @@ class YHPlayerManager: NSObject {
...
@@ -434,6 +479,8 @@ class YHPlayerManager: NSObject {
joinChannel(for: player, token: token, channelId: channelId, uid: uid, view: playerVC.playerView)
joinChannel(for: player, token: token, channelId: channelId, uid: uid, view: playerVC.playerView)
}
}
}
}
*/
leaveChannel
(
for
:
player
)
if
let
lastNav
=
lastNav
,
lastLiveVC
!=
nil
{
if
let
lastNav
=
lastNav
,
lastLiveVC
!=
nil
{
lastNav
.
viewControllers
.
removeAll
()
lastNav
.
viewControllers
.
removeAll
()
...
...
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/M/YHLiveStatusModel.swift
0 → 100644
View file @
c6943933
//
// YHLiveStatusModel.swift
// galaxy
//
// Created by alexzzw on 2024/12/30.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import
Foundation
import
SmartCodable
class
YHLiveStatusModel
:
SmartCodable
{
var
status
:
Int
=
0
var
stream_status
:
Int
=
0
required
init
()
{
}
}
galaxy/galaxy/Classes/Modules/LivestreamSales(直播销售)/VM/YHLiveSalesViewModel.swift
View file @
c6943933
...
@@ -302,6 +302,32 @@ extension YHLiveSalesViewModel {
...
@@ -302,6 +302,32 @@ extension YHLiveSalesViewModel {
callback
(
nil
,
err
)
callback
(
nil
,
err
)
}
}
}
}
func
getLiveStatus
(
liveId
:
Int
,
callback
:
@escaping
(
_
liveInfo
:
YHLiveStatusModel
?,
_
error
:
YHErrorModel
?)
->
Void
)
{
// 分享类型 1:直播 2录播
let
param
:
[
String
:
Any
]
=
[
"live_id"
:
liveId
]
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
LiveSales
.
liveStatus
_
=
YHNetRequest
.
getRequest
(
url
:
strUrl
,
params
:
param
)
{
json
,
_
in
// 1. json字符串 转 对象
printLog
(
"model 是 ==>
\(
json
)
"
)
if
json
.
code
==
200
{
guard
let
dic
=
json
.
data
?
.
peel
as?
[
String
:
Any
],
let
resultModel
=
YHLiveStatusModel
.
deserialize
(
from
:
dic
)
else
{
let
err
=
YHErrorModel
(
errorCode
:
YHErrorCode
.
dictParseError
.
rawValue
,
errorMsg
:
YHErrorCode
.
dictParseError
.
description
())
callback
(
nil
,
err
)
return
}
callback
(
resultModel
,
nil
)
}
else
{
let
err
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
.
isEmpty
?
""
:
json
.
msg
)
callback
(
nil
,
err
)
}
}
failBlock
:
{
err
in
callback
(
nil
,
err
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
c6943933
...
@@ -728,6 +728,8 @@ class YHAllApiName {
...
@@ -728,6 +728,8 @@ class YHAllApiName {
static
let
recommendLiveList
=
"super-app/live/recommend-live-list"
static
let
recommendLiveList
=
"super-app/live/recommend-live-list"
// APP分享直播间
// APP分享直播间
static
let
shareLive
=
"super-app/live/share-live"
static
let
shareLive
=
"super-app/live/share-live"
// app直播间状态
static
let
liveStatus
=
"super-app/live/live-status"
}
}
struct
AIChat
{
struct
AIChat
{
...
...
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