|
...
|
...
|
@@ -32,11 +32,12 @@ class SyncTimeFiles extends Command |
|
|
|
{
|
|
|
|
$fileModel = new File();
|
|
|
|
// $imagesModel = new Image();
|
|
|
|
$start = '2025-08-28 00:00:00';
|
|
|
|
$end = '2025-08-28 23:00:00';
|
|
|
|
$start = '2025-08-20 00:00:00';
|
|
|
|
$end = '2025-08-28 00:00:00';
|
|
|
|
$lists = $fileModel->list(['created_at'=>['between',[$start,$end]]]);
|
|
|
|
foreach ($lists as $v){
|
|
|
|
$path = $v['path'];
|
|
|
|
echo date('Y-m-d H:i:s') . ' | 图片链接:' . $path . PHP_EOL;
|
|
|
|
$code = $this->synchronizationFile($path);
|
|
|
|
if(200 != (int)$code){
|
|
|
|
echo date('Y-m-d H:i:s') . ' | 错误状态:' . $code . PHP_EOL;
|
...
|
...
|
|