修改任务

This commit is contained in:
邹景立 2021-03-19 14:57:02 +08:00
parent 7b4d45c111
commit 5e1a3c2726
3 changed files with 6 additions and 6 deletions

View File

@ -10,14 +10,14 @@ use think\console\Output;
/**
* 商城订单自动清理
* Class OrderClear
* Class OrderClean
* @package app\data\command
*/
class OrderClear extends Command
class OrderClean extends Command
{
protected function configure()
{
$this->setName('xdata:OrderClear');
$this->setName('xdata:OrderClean');
$this->setDescription('批量清理商城订单数据');
}

View File

@ -214,7 +214,7 @@ class ShopOrder extends Controller
*/
public function clean()
{
$this->_queue('定时清理无效订单数据', "xdata:OrderClear", 0, [], 0, 60);
$this->_queue('定时清理无效订单数据', "xdata:OrderClean", 0, [], 0, 60);
}
/**

View File

@ -1,6 +1,6 @@
<?php
use app\data\command\OrderClear;
use app\data\command\OrderClean;
use app\data\command\UserAmount;
use app\data\command\UserTransfer;
use app\data\command\UserUpgrade;
@ -12,7 +12,7 @@ use think\Console;
if (app()->request->isCli()) {
Console::starting(function (Console $console) {
$console->addCommand(OrderClear::class);
$console->addCommand(OrderClean::class);
$console->addCommand(UserAmount::class);
$console->addCommand(UserUpgrade::class);
$console->addCommand(UserTransfer::class);