parent
742b791cc2
commit
72975a1614
@ -0,0 +1,28 @@ |
||||
<?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') . '完成'; |
||||
} |
||||
|
||||
|
||||
} |
Loading…
Reference in new issue