正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -130,7 +130,7 @@ class FileController | @@ -130,7 +130,7 @@ class FileController | ||
| 130 | return $this->response('资源',Code::SUCCESS,['file'=>$hash,'file_link'=>$this->getFileUrl($fileModel,$hash)]); | 130 | return $this->response('资源',Code::SUCCESS,['file'=>$hash,'file_link'=>$this->getFileUrl($fileModel,$hash)]); |
| 131 | } | 131 | } |
| 132 | $url = $this->config['root'].$this->path; | 132 | $url = $this->config['root'].$this->path; |
| 133 | - $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension(); | 133 | + $fileName = uniqid().rand(10000,99999).'.'.$file_type; |
| 134 | //同步数据到cos | 134 | //同步数据到cos |
| 135 | if($this->upload_location == 1){ | 135 | if($this->upload_location == 1){ |
| 136 | $cosService = new CosService(); | 136 | $cosService = new CosService(); |
-
请 注册 或 登录 后发表评论