wzq 5 年 前
コミット
90e5c1c96a
共有1 個のファイルを変更した3 個の追加0 個の削除を含む
  1. 3 0
      app/Repositories/PostRepositories.php

+ 3 - 0
app/Repositories/PostRepositories.php

@@ -254,6 +254,9 @@ class PostRepositories
             if($comment->parent_id){
                 return jsonError('只能回复评论');
             }
+            if($comment->is_delete){
+                return jsonError('不能回复已删除评论');
+            }
             $data['parent_id'] = $request['parent_id'];
 
             if(isset($request['reply_uid']) && isset($request['reply_username'])){