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
23abd9fc
Commit
23abd9fc
authored
Sep 19, 2024
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决切换账号导致消息列表银河管家消息不及时更新bug
parent
5dcb4951
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
YHButlerServiceManager.swift
...s/ButlerServiceManager(银河管家)/YHButlerServiceManager.swift
+14
-5
No files found.
galaxy/galaxy/Classes/Modules/ButlerServiceManager(银河管家)/YHButlerServiceManager.swift
View file @
23abd9fc
...
@@ -59,7 +59,9 @@ class YHButlerServiceManager: NSObject {
...
@@ -59,7 +59,9 @@ class YHButlerServiceManager: NSObject {
guard
isUatAllowed
()
else
{
guard
isUatAllowed
()
else
{
return
return
}
}
initSDKAccountAndLastMessage
()
initSDKAccountAndLastMessage
{
_
in
//
}
}
}
func
updateApnsToken
(
token
:
Data
)
{
func
updateApnsToken
(
token
:
Data
)
{
...
@@ -132,8 +134,9 @@ extension YHButlerServiceManager {
...
@@ -132,8 +134,9 @@ extension YHButlerServiceManager {
}
}
/// 初始化SDK用户信息
/// 初始化SDK用户信息
func
initSDKAccountAndLastMessage
()
{
func
initSDKAccountAndLastMessage
(
completion
:
@escaping
(
Bool
)
->
Void
)
{
updateSDKAccountInfo
(
completion
:
{
_
in
updateSDKAccountInfo
(
completion
:
{
flag
in
completion
(
flag
)
})
})
}
}
...
@@ -153,14 +156,20 @@ extension YHButlerServiceManager {
...
@@ -153,14 +156,20 @@ extension YHButlerServiceManager {
guard
isUatAllowed
()
else
{
guard
isUatAllowed
()
else
{
return
return
}
}
initSDKAccountAndLastMessage
()
initSDKAccountAndLastMessage
{
_
in
// 为了更新状态
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didQiYuUnReadMsgCountChangeNotification
,
object
:
nil
)
}
}
}
@objc
private
func
loginSuccess
()
{
@objc
private
func
loginSuccess
()
{
guard
isUatAllowed
()
else
{
guard
isUatAllowed
()
else
{
return
return
}
}
initSDKAccountAndLastMessage
()
initSDKAccountAndLastMessage
{
_
in
// 为了更新状态
NotificationCenter
.
default
.
post
(
name
:
YhConstant
.
YhNotification
.
didQiYuUnReadMsgCountChangeNotification
,
object
:
nil
)
}
}
}
@objc
private
func
logoutSuccess
()
{
@objc
private
func
logoutSuccess
()
{
...
...
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