修复上传成功但是返回目录创建失败的提示

This commit is contained in:
icret
2019-06-14 23:08:10 +08:00
parent 0145ea9203
commit 82d25fdab3
4 changed files with 100 additions and 109 deletions

View File

@@ -47,11 +47,11 @@ function config_path(){
$img_path = $config['path'].date('Y').'/'.date('m').'/'.date('d');
if (!is_dir($img_path)){
mkdir($img_path,0755,true);
@mkdir($img_path,0755,true);
}
if (!is_writable($img_path)){
chmod($img_path,0755);
@chmod($img_path,0755);
}
return $img_path.'/';