|
...
|
...
|
@@ -314,9 +314,15 @@ class LoginController extends BaseController |
|
|
|
public function ceshi(){
|
|
|
|
//同步到大文件
|
|
|
|
$path = '/upload/m/video/2023-08';
|
|
|
|
$fileName = '64e81b9b80b13315901.mp4';
|
|
|
|
$fileName = '64e81b9b80b1331590.mp4';
|
|
|
|
$file_path = config('filesystems.disks.cos')['cdn1'].$path.'/'.$fileName;
|
|
|
|
$cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$path.'" https://v6-file.globalso.com/upload.php';
|
|
|
|
return shell_exec($cmd);
|
|
|
|
$param = [
|
|
|
|
'file_path'=>$file_path,
|
|
|
|
'save_path'=>'/www/wwwroot/cos'.$path
|
|
|
|
];
|
|
|
|
$url = 'https://v6-file.globalso.com/upload.php';
|
|
|
|
http_post($url,$param,['charset=utf-8'],false);
|
|
|
|
// $cmd = 'curl -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$path.'" https://v6-file.globalso.com/upload.php';
|
|
|
|
// return shell_exec($cmd);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|