Commit 483786ab authored by David黄金龙's avatar David黄金龙

登录态调用接口

parent 6caa58e9
...@@ -169,16 +169,19 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget { ...@@ -169,16 +169,19 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
} }
func requestLikeCollectionCount() { func requestLikeCollectionCount() {
if YHLoginManager.shared.isLogin() {
self.likeViewModel.getLikeCollectionRecentScanCountInfo { self.likeViewModel.getLikeCollectionRecentScanCountInfo {
[weak self] success, error in [weak self] success, error in
guard let self = self else { return } guard let self = self else { return }
self.headerView.updateLikeCollectCount(self.likeViewModel.likeCollectCountInfo) self.headerView.updateLikeCollectCount(self.likeViewModel.likeCollectCountInfo)
} }
}
} }
// 请求未读消息总数 // 请求未读消息总数
func getTotalUnreadMsgCount() { func getTotalUnreadMsgCount() {
if YHLoginManager.shared.isLogin() {
self.msgViewModel.requestTotalUnreadMsgCount { self.msgViewModel.requestTotalUnreadMsgCount {
[weak self] success, error in [weak self] success, error in
guard let self = self else { return } guard let self = self else { return }
...@@ -193,6 +196,9 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget { ...@@ -193,6 +196,9 @@ class YHMyViewController: YHBaseViewController, ConstraintRelatableTarget {
self.tableView .reloadData() self.tableView .reloadData()
} }
} }
}
} }
} }
......
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