diff --git a/application/index/model/FileManage.php b/application/index/model/FileManage.php index a2ac1d62d9fc793be69aa628e9d46f7d4370f6d6..19cb669e65a51ebbb70214fd5ef37fafd713a11d 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 = [