Files
hyperf_service/app/Cron/Oss/OssDelByOssIdTask.php
2024-10-31 17:57:49 +08:00

23 lines
484 B
PHP

<?php
/**
* This crontab file is part of item.
*
* @author ctexthuang
* @contact ctexthuang@qq.com
*/
declare(strict_types=1);
namespace App\Cron\Oss;
use Hyperf\Crontab\Annotation\Crontab;
#[Crontab(rule: "* * * * *", name: "OssDelByOssIdTask", singleton: true , callback: "execute", memo: "这是一个示例的定时任务")]
class OssDelByOssIdTask
{
public function execute()
{
//todo Write logic
var_dump(date('Y-m-d H:i:s', time()));
}
}