添加链接描述-模仿
案例(开发文档)
案例:https://www.gaojiufeng.cn/?id=294
https://www.kancloud.cn/a392223903/easytask/
步骤
1:安装:
composer require easy-task/easy-task(出现拓展包)
2:命名文件夹/定义控制器 (Task.php)
<?php
declare (strict_types = 1);
namespace app\command;
use app\task\Camera;
use app\task\Send;
use app\task\Statistics;
use think\console\Command;
use think\console\Input;
use think\console\input\Argument;
use think\console\input\Option;
use think\console\Output;
class Task extends Command
{
protected function configure()
{
// 设置名称为task