fix: 全模块Critical安全修复 — 防重入+锁+精度+XSS
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Utils\RPC;
|
||||
use App\Users;
|
||||
use App\UsersWallet;
|
||||
use App\HuobiSymbol;
|
||||
use Illuminate\Console\Command;
|
||||
use GuzzleHttp\Client;
|
||||
class UpdateHuobiSymbol extends Command
|
||||
{
|
||||
protected $signature = "update_Huobi_Symbol";
|
||||
protected $description = "更新火币交易对";
|
||||
public function handle()
|
||||
{
|
||||
$this->comment("start1");
|
||||
$url = 'api.huobi.br.com/v1/common/symbols';
|
||||
$N2w8E = new Client();
|
||||
$cli = $N2w8E;
|
||||
$content = $cli->get($url)->getBody()->getContents();
|
||||
$content = json_decode($content, true);
|
||||
HuobiSymbol::getSymbolsData($content['data']);
|
||||
$this->comment("end");
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user