完成评论统计

This commit is contained in:
augushong
2021-01-03 22:02:34 +08:00
parent 3b5a56aef5
commit cc83df7fb9
5 changed files with 43 additions and 1 deletions

View File

@@ -58,12 +58,15 @@ class PostComment extends Common
}
$post_data['type'] = 3;
$post_data['user_uid'] = $user_uid;
ModelPostComment::create($post_data);
ModelPostComment::clearCountCache();
return json_message();
}
@@ -113,6 +116,8 @@ class PostComment extends Common
ModelPostComment::destroy($id);
ModelPostComment::clearCountCache();
return json_message();
}
}