From 33135b1df187a8116017bd4d7a6aacdf5af700b7 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Fri, 25 Feb 2022 00:08:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=97=A0=E6=B3=95=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E5=85=B1=E4=BA=AB=E6=96=87=E4=BB=B6=E5=A4=B9=E5=86=85=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=9A=84=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/FileController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/Http/Controllers/Api/FileController.php b/app/Http/Controllers/Api/FileController.php index 7f4b3e74..2afb1c29 100755 --- a/app/Http/Controllers/Api/FileController.php +++ b/app/Http/Controllers/Api/FileController.php @@ -348,9 +348,7 @@ class FileController extends AbstractController return Base::retError('一次最多只能移动100个文件或文件夹'); } if ($pid > 0) { - if (!File::whereUserid($user->userid)->whereId($pid)->exists()) { - return Base::retError('参数错误'); - } + File::permissionFind($pid, 1); } // $files = [];