|
...
|
...
|
@@ -33,8 +33,8 @@ class SyncTimeFiles extends Command |
|
|
|
{
|
|
|
|
// $fileModel = new File();
|
|
|
|
$imagesModel = new Image();
|
|
|
|
$start = '2025-08-28 00:00:00';
|
|
|
|
$end = '2025-08-29 23:59:59';
|
|
|
|
$start = '2025-10-1 00:00:00';
|
|
|
|
$end = '2025-10-31 23:59:59';
|
|
|
|
$lists = $imagesModel->list(['created_at'=>['between',[$start,$end]]]);
|
|
|
|
foreach ($lists as $v){
|
|
|
|
$path = $v['path'];
|
|
...
|
...
|
@@ -52,9 +52,9 @@ class SyncTimeFiles extends Command |
|
|
|
|
|
|
|
public function synchronizationFile($path_name){
|
|
|
|
//同步到大文件
|
|
|
|
$file_path = config('filesystems.disks.cos')['cdn1'].$path_name;
|
|
|
|
$directoryPath = pathinfo($path_name, PATHINFO_DIRNAME);
|
|
|
|
$cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php';
|
|
|
|
// $file_path = config('filesystems.disks.cos')['cdn1'].$path_name;
|
|
|
|
// $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME);
|
|
|
|
$cmd = 'curl -k -F "file_path='.$path_name.'" -F "save_path=/www/wwwroot/cos'.$path_name.'" https://v6-file.globalso.com/upload.php';
|
|
|
|
return shell_exec($cmd);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|