rkljw 3 月之前
父節點
當前提交
d618d6ca96
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      app/JsonRpc/PublicRpcService.php

+ 3 - 0
app/JsonRpc/PublicRpcService.php

@@ -298,6 +298,9 @@ class PublicRpcService implements PublicRpcServiceInterface
             'id' => $data['id'],
             'user_id' => $data['user_id'],
         ];
+        if(isset($data['is_admin'])){
+            unset($where['user_id']);
+        }
         $result = LetterOfComplaint::where($where)->delete();
         if (empty($result)) {
             return Result::error("删除失败", 0);