You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
524 B
29 lines
524 B
10 months ago
|
<?php
|
||
|
|
||
|
declare (strict_types=1);
|
||
|
|
||
|
namespace app\command;
|
||
|
|
||
|
use think\console\Command;
|
||
|
use think\console\Output;
|
||
|
use think\console\Input;
|
||
|
use think\facade\Db;
|
||
|
|
||
|
// /www/server/php/74/bin/php /server/wwwroot/yanzong/think test
|
||
|
class test extends Command
|
||
|
{
|
||
|
protected function configure()
|
||
|
{
|
||
|
// 指令配置
|
||
|
$this->setName('test')
|
||
|
->setDescription('测试demo');
|
||
|
}
|
||
|
|
||
|
protected function execute(Input $input, Output $output)
|
||
|
{
|
||
|
echo date('Y-m-d H:i:s') . '完成';
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|