|
|
@@ -6,6 +6,7 @@ namespace SixShop\System\Cron;
|
|
|
use SixShop\Core\Attribute\Cron;
|
|
|
use think\Cache;
|
|
|
use Workerman\Crontab\Crontab;
|
|
|
+use Workerman\Worker;
|
|
|
|
|
|
readonly class SystemCron
|
|
|
{
|
|
|
@@ -25,6 +26,7 @@ readonly class SystemCron
|
|
|
'id' => $item->getId(),
|
|
|
'time' => date('Y-m-d H:i:s'),
|
|
|
];
|
|
|
+ Worker::safeEcho('[Cron] ' . $item->getName() . ' ' . $item->getRule() . "\n");
|
|
|
}
|
|
|
$this->cache->set('crontab_list', $crontabList);
|
|
|
}
|