作者 邓超

删除文件夹

@@ -201,7 +201,7 @@ class Folder extends Base { @@ -201,7 +201,7 @@ class Folder extends Base {
201 app()->e('folder_not_allowed_to_delete'); 201 app()->e('folder_not_allowed_to_delete');
202 } 202 }
203 // 是否存在下级 203 // 是否存在下级
204 - if(db()->count(folderSql::first(['pid'=>$folder['pid'],'email_id'=>$email['id']]))){ 204 + if(db()->count(folderSql::first(['pid'=>$folder['id'],'email_id'=>$email['id']]))){
205 app()->e('folder_delete_exist_child'); 205 app()->e('folder_delete_exist_child');
206 } 206 }
207 207