Commit 1599f46d authored by Alex朱枝文's avatar Alex朱枝文

涉及到七鱼的回调增加跳主线程,再加上两处

parent 93c68049
...@@ -226,7 +226,10 @@ extension YHButlerServiceManager { ...@@ -226,7 +226,10 @@ extension YHButlerServiceManager {
} }
initSDKAccountAndLastMessage { _ in initSDKAccountAndLastMessage { _ in
// 为了更新状态 // 为了更新状态
NotificationCenter.default.post(name: YhConstant.YhNotification.didQiYuUnReadMsgCountChangeNotification, object: nil) DispatchQueue.main.async {
NotificationCenter.default.post(name: YhConstant.YhNotification.didQiYuUnReadMsgCountChangeNotification, object: nil)
}
} }
} }
...@@ -236,7 +239,9 @@ extension YHButlerServiceManager { ...@@ -236,7 +239,9 @@ extension YHButlerServiceManager {
} }
initSDKAccountAndLastMessage { _ in initSDKAccountAndLastMessage { _ in
// 为了更新状态 // 为了更新状态
NotificationCenter.default.post(name: YhConstant.YhNotification.didQiYuUnReadMsgCountChangeNotification, object: nil) DispatchQueue.main.async {
NotificationCenter.default.post(name: YhConstant.YhNotification.didQiYuUnReadMsgCountChangeNotification, object: nil)
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment