作者 lyh

gx

... ... @@ -154,6 +154,8 @@ class ImageController extends Controller
$fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension();
//同步数据到cos
if($this->upload_location == 1){
var_dump(11111);
die();
$cosService = new CosService();
$cosService->uploadFile($files,$this->path,$fileName);
}else{
... ... @@ -344,8 +346,6 @@ class ImageController extends Controller
}else{
$projectModel = new Project();
$project_info = $projectModel->read(['id'=>$this->cache['project_id']],['upload_location']);
var_dump($project_info);
die();
$this->upload_location = $project_info['upload_location'];
$this->path = $this->uploads['path_b'].'/'.$this->cache['project_id'].'/'.$this->image_type[$this->param['refer']].'/'.date('Y-m');
}
... ...