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