正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -179,6 +179,8 @@ class FileController | @@ -179,6 +179,8 @@ class FileController | ||
| 179 | $url = $this->config['root'].$this->path; | 179 | $url = $this->config['root'].$this->path; |
| 180 | $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension(); | 180 | $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension(); |
| 181 | //同步数据到cos | 181 | //同步数据到cos |
| 182 | + var_dump($this->upload_location); | ||
| 183 | + die(); | ||
| 182 | if($this->upload_location == 1){ | 184 | if($this->upload_location == 1){ |
| 183 | $cosService = new CosService(); | 185 | $cosService = new CosService(); |
| 184 | $cosService->uploadFile($files,$this->path,$fileName); | 186 | $cosService->uploadFile($files,$this->path,$fileName); |
-
请 注册 或 登录 后发表评论