platform notify
This commit is contained in:
35
app/Console/Commands/Api/SecondsWalletBlockCheckCmd.php
Normal file
35
app/Console/Commands/Api/SecondsWalletBlockCheckCmd.php
Normal 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('结束...');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user