mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改任务
This commit is contained in:
parent
7b4d45c111
commit
5e1a3c2726
@ -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('批量清理商城订单数据');
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user