正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论