Parcourir la source

评论数同步

Chris il y a 5 ans
Parent
commit
a51583e14c

+ 1 - 1
RainbowPlanet/RainbowPlanet/Modules/CommunityModule/CommunityVideoContent/View/CommunityAllCommentView.swift

@@ -296,7 +296,7 @@ extension CommunityAllCommentView {
                     self?.noCommentsLabel.isHidden = true
                 }
                 
-                let count = 1 + (self?.communityPostCommentsModel?.pagination?.total ?? 0)
+                let count = 1 + (self?.communityPostCommentsModel?.commentCount ?? 0)
                 self?.communityPostCommentsModel?.commentCount = count
                 self?.titleLabel.text = "全部评论 \(count)"
                 VirusViewModel.shared.comment(communityVideoItemModel: (self?.videoItemModel)!, id: communityPostCommentIdModel?.id ?? 0,content: text)