platform notify

This commit is contained in:
cano
2024-03-27 00:11:26 +08:00
parent 01e93acdd8
commit 4b47fe7250
21 changed files with 462 additions and 18 deletions

View File

@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Api;
use App\Models\Api\Customer\CustomerUserExtendModel;
use Illuminate\Console\Command;

View File

@ -1,6 +1,6 @@
<?php
namespace App\Console\Commands;
namespace App\Console\Commands\Api;
use App\Models\Api\Wallet\CustomerWalletBalanceTransactionModel;
use Illuminate\Console\Command;

View File

@ -0,0 +1,35 @@
<?php
namespace App\Console\Commands\Api;
use App\Service\Wallet\Coin\Tron\UsdtTrx20Service;
use Illuminate\Console\Command;
class SecondsWalletBlockCheckCmd extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'app:seconds-wallet-block-check-cmd';
/**
* The console command description.
*
* @var string
*/
protected $description = '每2秒检查最新链上区块';
/**
* Execute the console command.
*/
public function handle()
{
$this->info('每2秒检查最新链上区块');
$this->info('开始...');
$oUsdtTrx20Service = new UsdtTrx20Service();
$oUsdtTrx20Service->checkNowBlock();
$this->info('结束...');
}
}

View File

@ -15,6 +15,7 @@ class Kernel extends ConsoleKernel
// $schedule->command('inspire')->hourly();
$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();
$schedule->command('app:seconds-wallet-block-check-cmd')->everyTwoSeconds()->onOneServer();
}
/**