feat: bnb

This commit is contained in:
hashbro
2026-09-25 13:10:34 +08:00
parent 13aa587099
commit 534b36a2d2
24 changed files with 242 additions and 33 deletions
@@ -152,7 +152,7 @@ layui.use(['table', 'form', 'layer'], function () {
return ['USDT', 'TRX'];
}
if (type.indexOf('ETH') >= 0 || type.indexOf('EVM') >= 0 || /^0x[0-9a-fA-F]{40}$/.test(addr)) {
return ['ETH', 'USDT'];
return ['ETH', 'USDT', 'BNB'];
}
if (type.indexOf('BTC') >= 0 || type.indexOf('BITCOIN') >= 0) {
return ['BTC'];
@@ -156,6 +156,7 @@ layui.use(['table', 'form', 'layer'], function () {
'<input name="auto_transfer_threshold_trx" class="layui-input" placeholder="TRX" style="width:110px;" value="' + esc(values.auto_transfer_threshold_trx || '') + '">' +
'<input name="auto_transfer_threshold_eth" class="layui-input" placeholder="ETH" style="width:110px;" value="' + esc(values.auto_transfer_threshold_eth || '') + '">' +
'<input name="auto_transfer_threshold_btc" class="layui-input" placeholder="BTC" style="width:110px;" value="' + esc(values.auto_transfer_threshold_btc || '') + '">' +
'<input name="auto_transfer_threshold_bnb" class="layui-input" placeholder="BNB" style="width:110px;" value="' + esc(values.auto_transfer_threshold_bnb || '') + '">' +
'</div><div class="layui-form-mid layui-word-aux" style="margin-left:110px;">留空则用系统阈值(系统也空则 &gt;0)</div></div>' +
'</form>',
success: function (layero, index) {
@@ -93,6 +93,8 @@
value="{{ $form['auto_transfer.threshold_eth'] }}">
<input type="text" name="auto_transfer_threshold_btc" class="layui-input" placeholder="BTC" style="width:140px;"
value="{{ $form['auto_transfer.threshold_btc'] }}">
<input type="text" name="auto_transfer_threshold_bnb" class="layui-input" placeholder="BNB" style="width:140px;"
value="{{ $form['auto_transfer.threshold_bnb'] }}">
</div>
<div class="layui-form-mid layui-word-aux" style="margin-left:110px;">余额大于阈值才全额划转;留空按 &gt;0 触发</div>
</div>