|
@@ -30,11 +30,11 @@ class SyncTimeFiles extends Command |
|
@@ -30,11 +30,11 @@ class SyncTimeFiles extends Command |
|
30
|
|
30
|
|
|
31
|
public function handle()
|
31
|
public function handle()
|
|
32
|
{
|
32
|
{
|
|
33
|
- $fileModel = new File();
|
|
|
|
34
|
-// $imagesModel = new Image();
|
33
|
+// $fileModel = new File();
|
|
|
|
34
|
+ $imagesModel = new Image();
|
|
35
|
$start = '2025-08-28 00:00:00';
|
35
|
$start = '2025-08-28 00:00:00';
|
|
36
|
- $end = '2025-08-29 59:00:00';
|
|
|
|
37
|
- $lists = $fileModel->list(['created_at'=>['between',[$start,$end]]]);
|
36
|
+ $end = '2025-08-29 23:59:59';
|
|
|
|
37
|
+ $lists = $imagesModel->list(['created_at'=>['between',[$start,$end]]]);
|
|
38
|
foreach ($lists as $v){
|
38
|
foreach ($lists as $v){
|
|
39
|
$path = $v['path'];
|
39
|
$path = $v['path'];
|
|
40
|
echo date('Y-m-d H:i:s') . ' | 图片链接:' . $path . PHP_EOL;
|
40
|
echo date('Y-m-d H:i:s') . ' | 图片链接:' . $path . PHP_EOL;
|