完成评论统计

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

@@ -5,6 +5,7 @@ declare(strict_types=1);
namespace app\admin\controller;
use app\model\PostComment as ModelPostComment;
use think\facade\Cache;
use think\facade\View;
use think\Request;
@@ -96,6 +97,8 @@ class PostComment extends Common
ModelPostComment::destroy($id);
ModelPostComment::clearCountCache();
return json_message();
}
}