订单、纠纷
This commit is contained in:
@ -5,14 +5,14 @@ namespace App\Console\Commands;
|
||||
use App\Models\Api\Customer\CustomerUserExtendModel;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class DailyCheckUserActiveStatus extends Command
|
||||
class DailyCheckUserActiveStatusCmd extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'app:daily-check-user-active-status';
|
||||
protected $signature = 'app:daily-check-user-active-status-cmd';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
35
app/Console/Commands/HourCustomerWalletTrsDelayPayCmd.php
Normal file
35
app/Console/Commands/HourCustomerWalletTrsDelayPayCmd.php
Normal file
@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Models\Api\Wallet\CustomerWalletBalanceTransactionModel;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class HourCustomerWalletTrsDelayPayCmd extends Command
|
||||
{
|
||||
/**
|
||||
* The name and signature of the console command.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $signature = 'app:hour-customer-wallet-trs-delay-pay-cmd';
|
||||
|
||||
/**
|
||||
* The console command description.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = '每小时检查用户钱包交易延迟支付';
|
||||
|
||||
/**
|
||||
* Execute the console command.
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
$this->info('每小时检查用户钱包交易延迟支付');
|
||||
$this->info('开始...');
|
||||
$oCustomerWalletBalanceTransactionModel = new CustomerWalletBalanceTransactionModel();
|
||||
$oCustomerWalletBalanceTransactionModel->dealDelayPaymentTransactionCmd();
|
||||
$this->info('结束...');
|
||||
}
|
||||
}
|
||||
@ -13,7 +13,8 @@ class Kernel extends ConsoleKernel
|
||||
protected function schedule(Schedule $schedule): void
|
||||
{
|
||||
// $schedule->command('inspire')->hourly();
|
||||
$schedule->command('app:daily-check-user-active-status')->dailyAt('00:30')->onOneServer();
|
||||
$schedule->command('app:daily-check-user-active-status-cmd')->dailyAt('00:30')->onOneServer();
|
||||
$schedule->command('app:hour-customer-wallet-trs-delay-pay-cmd')->hourly()->onOneServer();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user