正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -154,6 +154,8 @@ class ImageController extends Controller | @@ -154,6 +154,8 @@ class ImageController extends Controller | ||
| 154 | $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension(); | 154 | $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension(); |
| 155 | //同步数据到cos | 155 | //同步数据到cos |
| 156 | if($this->upload_location == 1){ | 156 | if($this->upload_location == 1){ |
| 157 | + var_dump(11111); | ||
| 158 | + die(); | ||
| 157 | $cosService = new CosService(); | 159 | $cosService = new CosService(); |
| 158 | $cosService->uploadFile($files,$this->path,$fileName); | 160 | $cosService->uploadFile($files,$this->path,$fileName); |
| 159 | }else{ | 161 | }else{ |
| @@ -344,8 +346,6 @@ class ImageController extends Controller | @@ -344,8 +346,6 @@ class ImageController extends Controller | ||
| 344 | }else{ | 346 | }else{ |
| 345 | $projectModel = new Project(); | 347 | $projectModel = new Project(); |
| 346 | $project_info = $projectModel->read(['id'=>$this->cache['project_id']],['upload_location']); | 348 | $project_info = $projectModel->read(['id'=>$this->cache['project_id']],['upload_location']); |
| 347 | - var_dump($project_info); | ||
| 348 | - die(); | ||
| 349 | $this->upload_location = $project_info['upload_location']; | 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 | } |
-
请 注册 或 登录 后发表评论