rkljw 3 mesi fa
parent
commit
d618d6ca96
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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);