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
f140bcff
Commit
f140bcff
authored
Apr 17, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 消息
parent
8e2c6ad6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
Applegate(JPush).swift
galaxy/galaxy/Applegate(JPush).swift
+2
-3
YHTabBarViewController.swift
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
+2
-2
YHMsgListModel.swift
...galaxy/Classes/Modules/Message(消息)/M/YHMsgListModel.swift
+1
-0
No files found.
galaxy/galaxy/Applegate(JPush).swift
View file @
f140bcff
...
@@ -65,8 +65,6 @@ extension AppDelegate: JPUSHRegisterDelegate {
...
@@ -65,8 +65,6 @@ extension AppDelegate: JPUSHRegisterDelegate {
UNUserNotificationCenter
.
current
()
.
removeAllPendingNotificationRequests
()
UNUserNotificationCenter
.
current
()
.
removeAllPendingNotificationRequests
()
}
}
@available(iOS 10.0, *)
func
jpushNotificationCenter
(
_
center
:
UNUserNotificationCenter
,
willPresent
notification
:
UNNotification
,
withCompletionHandler
completionHandler
:
((
Int
)
->
Void
))
{
func
jpushNotificationCenter
(
_
center
:
UNUserNotificationCenter
,
willPresent
notification
:
UNNotification
,
withCompletionHandler
completionHandler
:
((
Int
)
->
Void
))
{
let
userInfo
=
notification
.
request
.
content
.
userInfo
let
userInfo
=
notification
.
request
.
content
.
userInfo
...
@@ -77,7 +75,6 @@ extension AppDelegate: JPUSHRegisterDelegate {
...
@@ -77,7 +75,6 @@ extension AppDelegate: JPUSHRegisterDelegate {
completionHandler
(
Int
(
UNNotificationPresentationOptions
.
alert
.
rawValue
))
completionHandler
(
Int
(
UNNotificationPresentationOptions
.
alert
.
rawValue
))
}
}
@available(iOS 10.0, *)
func
jpushNotificationCenter
(
_
center
:
UNUserNotificationCenter
,
didReceive
response
:
UNNotificationResponse
,
withCompletionHandler
completionHandler
:
(()
->
Void
))
{
func
jpushNotificationCenter
(
_
center
:
UNUserNotificationCenter
,
didReceive
response
:
UNNotificationResponse
,
withCompletionHandler
completionHandler
:
(()
->
Void
))
{
let
userInfo
=
response
.
notification
.
request
.
content
.
userInfo
let
userInfo
=
response
.
notification
.
request
.
content
.
userInfo
if
response
.
notification
.
request
.
trigger
is
UNPushNotificationTrigger
{
if
response
.
notification
.
request
.
trigger
is
UNPushNotificationTrigger
{
...
@@ -85,6 +82,8 @@ extension AppDelegate: JPUSHRegisterDelegate {
...
@@ -85,6 +82,8 @@ extension AppDelegate: JPUSHRegisterDelegate {
}
}
// 系统要求执行这个方法
// 系统要求执行这个方法
completionHandler
()
completionHandler
()
// 转换到消息tab
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didSwithToMsgTabNotification
,
object
:
nil
)
}
}
...
...
galaxy/galaxy/Classes/Base/C/YHTabBarViewController.swift
View file @
f140bcff
...
@@ -55,8 +55,8 @@ extension YHTabBarViewController {
...
@@ -55,8 +55,8 @@ extension YHTabBarViewController {
// 转换到消息tab
// 转换到消息tab
@objc
func
switchToMsgTab
()
{
@objc
func
switchToMsgTab
()
{
DispatchQueue
.
main
.
async
{
DispatchQueue
.
main
.
async
After
(
deadline
:
.
now
()
+
8
)
{
self
.
selectedIndex
=
2
goTabBarBy
(
tabType
:
.
message
)
}
}
}
}
...
...
galaxy/galaxy/Classes/Modules/Message(消息)/M/YHMsgListModel.swift
View file @
f140bcff
...
@@ -70,6 +70,7 @@ class YHDetailMessageModel: SmartCodable {
...
@@ -70,6 +70,7 @@ class YHDetailMessageModel: SmartCodable {
var
content
:
String
=
""
var
content
:
String
=
""
var
time
:
Int
=
0
var
time
:
Int
=
0
var
isRead
:
Bool
=
false
var
isRead
:
Bool
=
false
var
orderId
:
Int
=
0
required
init
()
{
required
init
()
{
...
...
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