正在显示
1 个修改的文件
包含
0 行增加
和
2 行删除
| @@ -48,8 +48,6 @@ class TencentCosService extends BaseService | @@ -48,8 +48,6 @@ class TencentCosService extends BaseService | ||
| 48 | $url = 'https://'.$this->config['bucket'].'.cos.'.$this->config['cosRegion'].'.myqcloud.com'.$pathname.'?sign='.$signature; | 48 | $url = 'https://'.$this->config['bucket'].'.cos.'.$this->config['cosRegion'].'.myqcloud.com'.$pathname.'?sign='.$signature; |
| 49 | // 打开文件流 | 49 | // 打开文件流 |
| 50 | $url_path = config('filesystems.disks.upload')['root'].$path.'/'.$fileName; | 50 | $url_path = config('filesystems.disks.upload')['root'].$path.'/'.$fileName; |
| 51 | - var_dump($url_path); | ||
| 52 | - die(); | ||
| 53 | $fileContent = file_get_contents($url_path); | 51 | $fileContent = file_get_contents($url_path); |
| 54 | return $this->http_put($url,$fileContent); | 52 | return $this->http_put($url,$fileContent); |
| 55 | } | 53 | } |
-
请 注册 或 登录 后发表评论