// +---------------------------------------------------------------------- declare (strict_types=1); namespace app\command; use app\common\repositories\user\AwardIntegralPriceRepository; use Swoole\Coroutine\MySQL\Exception; use think\console\Command; use think\console\Input; use think\console\input\Argument; use think\console\input\Option; use think\console\Output; use think\event\RouteLoaded; use think\facade\Route; use app\common\repositories\system\auth\MenuRepository; class Test extends Command { protected function configure() { // 指令配置 $this->setName('test') ->setDescription('测试'); } /** * 更新路由 * @Author:Qinii * @Date: 2020/5/15 * @param Input $input * @param Output $output * @return int|void|null */ protected function execute(Input $input, Output $output) { $price = app()->make(AwardIntegralPriceRepository::class)->awardIntegralPrice(); var_dump($price); } }