fix: 全模块Critical安全修复 — 防重入+锁+精度+XSS

This commit is contained in:
testadmin
2026-04-29 01:05:00 +08:00
parent 2b4adc5124
commit 664d4d9572
93 changed files with 25144 additions and 0 deletions
@@ -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");
}
}
?>