作者 lyh

gx

@@ -344,9 +344,9 @@ class ImageController extends Controller @@ -344,9 +344,9 @@ class ImageController extends Controller
344 }else{ 344 }else{
345 $projectModel = new Project(); 345 $projectModel = new Project();
346 $project_info = $projectModel->read(['id'=>$this->cache['project_id']],['upload_location']); 346 $project_info = $projectModel->read(['id'=>$this->cache['project_id']],['upload_location']);
347 - if($project_info['upload_location'] != 1){  
348 - $this->upload_location = 0;  
349 - } 347 + var_dump($project_info);
  348 + die();
  349 + $this->upload_location = $project_info['upload_location'];
350 $this->path = $this->uploads['path_b'].'/'.$this->cache['project_id'].'/'.$this->image_type[$this->param['refer']].'/'.date('Y-m'); 350 $this->path = $this->uploads['path_b'].'/'.$this->cache['project_id'].'/'.$this->image_type[$this->param['refer']].'/'.date('Y-m');
351 } 351 }
352 } 352 }