Files
omsP/back/application/command/QueryAgv.php

35 lines
777 B
PHP
Raw Normal View History

2026-03-13 09:28:47 +08:00
<?php
namespace app\command;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\Db;
use think\Log;
use app\api\controller\Task;
class QueryAgv extends Command
{
//配置定时器的信息
protected function configure(){
$this->setName('QueryAgv')->setDescription("计划任务QueryAgv");
}
protected function execute(Input $input, Output $output){
//输出到日志
$output->writeln('Date Crontab job start...');
/*** 这里写计划任务列表集 START ***/
$this->Work();
$output->writeln("Date Crontab job end...");
}
private function Work(){
$task = new Task();
$task->QueryAgv();
echo("QUERYAGV---RUN---END\n");
}
}