|
|
@@ -63,9 +63,9 @@ class ContractController extends AdminController
|
|
|
$extension = $pathInfo['extension'];//获取文件扩展名
|
|
|
$file_name = $name.'.'.$extension;
|
|
|
|
|
|
- $file_path = 'public/contract/'.date('Ymd').'/';
|
|
|
+ $file_path = 'storage/contract/'.date('Ymd').'/';
|
|
|
+ CommonServer::creatServer()->creatDir($file_path);
|
|
|
$path=public_path($file_path);
|
|
|
- if(!is_dir($path))mkdir($path,0777,true);
|
|
|
file_put_contents($path . $file_name,$file_url);
|
|
|
|
|
|
$contracts_file = $file_path.$file_name;
|