|
@@ -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);
|