订单、纠纷

This commit is contained in:
cano
2024-03-11 02:21:52 +08:00
parent 6d242ae973
commit 1161f06aeb
15 changed files with 855 additions and 53 deletions

View File

@ -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.

View 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('结束...');
}
}

View File

@ -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();
}
/**