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
4d68d303
Commit
4d68d303
authored
Jun 05, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into develop-desk-tx
# Conflicts: # galaxy/galaxy/Applegate(JPush).swift
parents
a218ff2e
1334471c
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
46 additions
and
30 deletions
+46
-30
Fastfile
galaxy/fastlane/Fastfile
+1
-1
project.pbxproj
galaxy/galaxy.xcodeproj/project.pbxproj
+4
-4
AppDelegate.swift
galaxy/galaxy/AppDelegate.swift
+2
-0
Applegate(JPush).swift
galaxy/galaxy/Applegate(JPush).swift
+7
-5
YHAITabViewController.swift
...odules/AI/AI-Dialogue(AI对话)/C/YHAITabViewController.swift
+10
-18
YHServiceSelectAlertView.swift
...intCertificate(3 赴港办证预约)/V/YHServiceSelectAlertView.swift
+2
-2
YHMsgViewModel.swift
...alaxy/Classes/Modules/Message(消息)/VM/YHMsgViewModel.swift
+19
-0
YHAllApiName.swift
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
+1
-0
No files found.
galaxy/fastlane/Fastfile
View file @
4d68d303
...
...
@@ -37,7 +37,7 @@ platform :ios do
push = "HIGH"
#打包正使用的分支
myPack_branch =
notification
myPack_branch =
push
# 打adhoc包 执行命令 fastlane galaxyTest
...
...
galaxy/galaxy.xcodeproj/project.pbxproj
View file @
4d68d303
...
...
@@ -8510,7 +8510,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyTestEnv.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
...
...
@@ -8658,7 +8658,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
...
...
@@ -8868,7 +8868,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxyDebug.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
...
...
@@ -8918,7 +8918,7 @@
CODE_SIGN_ENTITLEMENTS
=
galaxy/galaxy.entitlements
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_STYLE
=
Automatic
;
CURRENT_PROJECT_VERSION
=
1
;
CURRENT_PROJECT_VERSION
=
3
;
DEVELOPMENT_TEAM
=
RXHYW88XR7
;
ENABLE_USER_SCRIPT_SANDBOXING
=
NO
;
FRAMEWORK_SEARCH_PATHS
=
(
...
...
galaxy/galaxy/AppDelegate.swift
View file @
4d68d303
...
...
@@ -24,6 +24,8 @@ import TUICore
@main
class
AppDelegate
:
UIResponder
,
UIApplicationDelegate
,
WXApiDelegate
{
private
lazy
var
liveViewModel
=
YHLiveSalesViewModel
()
let
viewModel
=
YHMsgViewModel
()
var
window
:
UIWindow
?
func
application
(
_
application
:
UIApplication
,
didFinishLaunchingWithOptions
launchOptions
:
[
UIApplication
.
LaunchOptionsKey
:
Any
]?)
->
Bool
{
...
...
galaxy/galaxy/Applegate(JPush).swift
View file @
4d68d303
...
...
@@ -10,7 +10,7 @@ import UIKit
import
AuthenticationServices
extension
AppDelegate
:
JPUSHRegisterDelegate
{
// 注册JPush服务
func
registerJPushService
(
_
launchOptions
:
[
UIApplication
.
LaunchOptionsKey
:
Any
]?)
{
...
...
@@ -33,7 +33,7 @@ extension AppDelegate: JPUSHRegisterDelegate {
#if DEBUG
let
isProduction
=
false
#elseif TESTENV
let
isProduction
=
tru
e
let
isProduction
=
fals
e
#else
let
isProduction
=
true
#endif
...
...
@@ -119,19 +119,21 @@ extension AppDelegate: JPUSHRegisterDelegate {
if
let
msgType
=
userInfo
[
"msg_type"
]
as?
Int
,
msgType
==
YHMessageType
.
article
.
rawValue
{
goToMessagePage
()
let
model
=
YHNewsModel
()
model
.
id
=
userInfo
[
"msg_id"
]
as?
String
??
""
let
taskId
=
userInfo
[
"task_id"
]
as?
Int
??
0
model
.
article_id
=
userInfo
[
"article_id"
]
as?
Int
??
0
model
.
news_type
=
userInfo
[
"news_type"
]
as?
Int
??
0
model
.
cover_img
=
userInfo
[
"cover_img"
]
as?
String
??
""
model
.
url
=
userInfo
[
"url"
]
as?
String
??
""
model
.
media_url
=
userInfo
[
"media_url"
]
as?
String
??
""
model
.
media_transcode_url
=
userInfo
[
"media_transcode_url"
]
as?
String
??
""
printLog
(
"DDDDY:
\(
model
.
id
)
"
)
yh_newsList
.
enterDetail
(
model
)
yh_newsList
.
markRead
(
model
)
self
.
viewModel
.
readMessage
(
taskId
:
taskId
)
{
_
,
_
in
}
}
else
{
goToMessagePage
(
userInfo
)
}
})
}
...
...
galaxy/galaxy/Classes/Modules/AI/AI-Dialogue(AI对话)/C/YHAITabViewController.swift
View file @
4d68d303
...
...
@@ -12,6 +12,7 @@ import IQKeyboardManagerSwift
class
YHAITabViewController
:
YHBaseViewController
,
UIGestureRecognizerDelegate
{
var
viewDidAppear
:
Bool
=
false
var
defaltIndex
:
Int
=
0
let
viewModel
=
YHAIViewModel
()
...
...
@@ -110,34 +111,27 @@ class YHAITabViewController: YHBaseViewController, UIGestureRecognizerDelegate {
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
// 处于第一个item的时候,才允许屏幕边缘手势返回
self
.
navigationController
?
.
interactivePopGestureRecognizer
?
.
isEnabled
=
(
self
.
segmentedView
.
selectedIndex
==
0
)
self
.
gk_interactivePopDisabled
=
(
self
.
segmentedView
.
selectedIndex
!=
0
)
self
.
gk_fullScreenPopDisabled
=
(
self
.
segmentedView
.
selectedIndex
!=
0
)
requestList
()
}
override
func
viewDidAppear
(
_
animated
:
Bool
)
{
super
.
viewDidAppear
(
animated
)
viewDidAppear
=
true
self
.
navigationController
?
.
interactivePopGestureRecognizer
?
.
isEnabled
=
(
self
.
segmentedView
.
selectedIndex
==
0
)
self
.
gk_interactivePopDisabled
=
(
self
.
segmentedView
.
selectedIndex
!=
0
)
self
.
gk_fullScreenPopDisabled
=
(
self
.
segmentedView
.
selectedIndex
!=
0
)
}
override
func
viewWillDisappear
(
_
animated
:
Bool
)
{
super
.
viewWillDisappear
(
animated
)
override
func
viewDidDisappear
(
_
animated
:
Bool
)
{
super
.
viewDidDisappear
(
animated
)
viewDidAppear
=
false
// 离开页面的时候,需要恢复屏幕边缘手势,不能影响其他页面
self
.
navigationController
?
.
interactivePopGestureRecognizer
?
.
isEnabled
=
true
self
.
gk_interactivePopDisabled
=
false
self
.
gk_fullScreenPopDisabled
=
false
}
override
func
gestureRecognizer
(
_
gestureRecognizer
:
UIGestureRecognizer
,
shouldRecognizeSimultaneouslyWith
otherGestureRecognizer
:
UIGestureRecognizer
)
->
Bool
{
if
self
.
segmentedView
.
selectedIndex
==
0
{
self
.
gk_interactivePopDisabled
=
false
self
.
gk_fullScreenPopDisabled
=
false
return
true
if
gestureRecognizer
==
navigationController
?
.
interactivePopGestureRecognizer
{
if
viewDidAppear
{
return
self
.
segmentedView
.
selectedIndex
==
0
}
}
return
false
}
...
...
@@ -281,8 +275,6 @@ extension YHAITabViewController: JXSegmentedViewDelegate {
func
segmentedView
(
_
segmentedView
:
JXSegmentedView
,
didSelectedItemAt
index
:
Int
)
{
self
.
navigationController
?
.
interactivePopGestureRecognizer
?
.
isEnabled
=
(
self
.
segmentedView
.
selectedIndex
==
0
)
self
.
gk_interactivePopDisabled
=
(
self
.
segmentedView
.
selectedIndex
!=
0
)
self
.
gk_fullScreenPopDisabled
=
(
self
.
segmentedView
.
selectedIndex
!=
0
)
if
segmentedView
.
selectedIndex
==
1
{
// AI对话
bgImgView
.
isHidden
=
false
...
...
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/CustomerService(客服段)/Certificate(办证段)/AppointCertificate(3 赴港办证预约)/V/YHServiceSelectAlertView.swift
View file @
4d68d303
...
...
@@ -73,8 +73,8 @@ class YHServiceSelectAlertView: UICollectionViewCell {
lazy
var
titleLabel
:
UILabel
=
{
let
label
=
UILabel
()
label
.
numberOfLines
=
0
let
a
:
ASAttributedString
=
.
init
(
"期望银河在"
,
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
18
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
b
:
ASAttributedString
=
.
init
(
"
审批阶段
"
,
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
18
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
a
:
ASAttributedString
=
.
init
(
"期望银河在
您的
"
,
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
18
)),
.
foreground
(
UIColor
.
mainTextColor
))
let
b
:
ASAttributedString
=
.
init
(
"
香港新生活
"
,
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
18
)),
.
foreground
(
UIColor
.
brandMainColor
))
let
c
:
ASAttributedString
=
.
init
(
"
\n
提供哪些服务"
,
.
font
(
UIFont
.
PFSC_B
(
ofSize
:
18
)),
.
foreground
(
UIColor
.
mainTextColor
))
label
.
attributed
.
text
=
a
+
b
+
c
return
label
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/VM/YHMsgViewModel.swift
View file @
4d68d303
...
...
@@ -140,6 +140,25 @@ class YHMsgViewModel: NSObject {
}
}
func
readMessage
(
taskId
:
Int
,
_
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
Void
)
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Message
.
readPushMsgApi
let
params
:
[
String
:
Any
]
=
[
"type"
:
YHMessageType
.
article
.
rawValue
,
"task_id"
:
taskId
]
_
=
YHNetRequest
.
postRequest
(
url
:
strUrl
,
params
:
params
)
{
json
,
_
in
printLog
(
"model 是 ==>
\(
json
)
"
)
if
json
.
code
==
200
{
callBackBlock
(
true
,
nil
)
}
else
{
let
error
:
YHErrorModel
=
YHErrorModel
(
errorCode
:
Int32
(
json
.
code
),
errorMsg
:
json
.
msg
)
callBackBlock
(
false
,
error
)
}
}
failBlock
:
{
error
in
callBackBlock
(
false
,
error
)
}
}
func
requestTotalUnreadMsgCount
(
_
callBackBlock
:
@escaping
(
_
success
:
Bool
,
_
error
:
YHErrorModel
?)
->
Void
)
{
let
strUrl
=
YHBaseUrlManager
.
shared
.
curURL
()
+
YHAllApiName
.
Message
.
unreadTotalCountApi
...
...
galaxy/galaxy/Classes/Tools/NetWork/YHAllApiName.swift
View file @
4d68d303
...
...
@@ -433,6 +433,7 @@ class YHAllApiName {
static
let
msgDetaiListApi
=
"infoflow/message/list/v2"
// 标记消息已读
static
let
readMsgApi
=
"infoflow/read-push"
static
let
readPushMsgApi
=
"infoflow/read-push-from-bar"
// 获取未读消息总数
static
let
unreadTotalCountApi
=
"infoflow/unread-total"
// 报备设备信息
...
...
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