Browse Source

Merge branch 'bugfix_12_20_liu' into dev

rkljw 3 months ago
parent
commit
86a90d6170
1 changed files with 3 additions and 0 deletions
  1. 3 0
      app/JsonRpc/PublicRpcService.php

+ 3 - 0
app/JsonRpc/PublicRpcService.php

@@ -305,6 +305,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);