|
@@ -238,7 +238,7 @@ extension CommunityAllCommentView {
|
|
|
[weak self] (communityPostCommentsModel) -> (Void) in
|
|
|
let communityPostCommentsModel = communityPostCommentsModel as? CommunityPostCommentsModel
|
|
|
self?.communityPostCommentsModel = communityPostCommentsModel
|
|
|
- let totalComments: Int = communityPostCommentsModel?.pagination?.total ?? 0
|
|
|
+ let totalComments: Int = communityPostCommentsModel?.commentCount ?? 0
|
|
|
self?.titleLabel.text = "全部评论 \(totalComments)"
|
|
|
if totalComments == 0 {
|
|
|
self?.tableView.isHidden = true
|
|
@@ -297,7 +297,7 @@ extension CommunityAllCommentView {
|
|
|
}
|
|
|
|
|
|
let count = 1 + (self?.communityPostCommentsModel?.pagination?.total ?? 0)
|
|
|
- self?.communityPostCommentsModel?.pagination?.total = count
|
|
|
+ self?.communityPostCommentsModel?.commentCount = count
|
|
|
self?.titleLabel.text = "全部评论 \(count)"
|
|
|
VirusViewModel.shared.comment(communityVideoItemModel: (self?.videoItemModel)!, id: communityPostCommentIdModel?.id ?? 0,content: text)
|
|
|
|