正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -143,7 +143,7 @@ class FileController | @@ -143,7 +143,7 @@ class FileController | ||
| 143 | */ | 143 | */ |
| 144 | public function synchronizationFile($file_type,$fileName){ | 144 | public function synchronizationFile($file_type,$fileName){ |
| 145 | //同步到大文件 | 145 | //同步到大文件 |
| 146 | - $file_path = getFileUrl($this->path.'/'.$fileName,$this->cache['storage_type'] ?? 0); | 146 | + $file_path = config('filesystems.disks.cos')['cdn1'].$this->path.'/'.$fileName; |
| 147 | $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->path.'" https://v6-file.globalso.com/upload.php'; | 147 | $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$this->path.'" https://v6-file.globalso.com/upload.php'; |
| 148 | shell_exec($cmd); | 148 | shell_exec($cmd); |
| 149 | } | 149 | } |
-
请 注册 或 登录 后发表评论