From 12f7f691eba8f354a30903982ff03c2ed9eff903 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Sun, 18 Feb 2018 21:08:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=A0=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E9=87=8D=E5=90=8D=E6=97=A0=E6=B3=95=E5=88=9B=E5=BB=BA=E7=9B=AE?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/index/model/FileManage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/index/model/FileManage.php b/application/index/model/FileManage.php index a2ac1d6..19cb669 100644 --- a/application/index/model/FileManage.php +++ b/application/index/model/FileManage.php @@ -1076,7 +1076,7 @@ class FileManage extends Model{ if(empty($dirName)){ return ["result"=>["success"=>false,"error"=>"目录名不能为空"]]; } - if(Db::name('folders')->where('position_absolute',$dirPosition)->find() ==null || Db::name('folders')->where('position',$dirPosition)->where('folder_name',$dirName)->find() !=null || Db::name('files')->where('dir',$dirPosition)->where('pre_name',$dirName)->find() !=null){ + if(Db::name('folders')->where('position_absolute',$dirPosition)->where('owner',$uid)->find() ==null || Db::name('folders')->where('owner',$uid)->where('position',$dirPosition)->where('folder_name',$dirName)->find() !=null || Db::name('files')->where('upload_date',$uid)->where('dir',$dirPosition)->where('pre_name',$dirName)->find() !=null){ return ["result"=>["success"=>false,"error"=>"路径不存在或文件已存在"]]; } $sqlData = [ -- GitLab