add BMAC TX type to rdrama

master
Aevann 2024-02-03 05:13:35 +02:00
parent 5e1df64b69
commit 82331ba8bd
2 changed files with 7 additions and 1 deletions

View File

@ -2080,9 +2080,12 @@ def insert_transaction_post(v):
amount = request.values.get("amount", "").strip()
username = request.values.get("username", "").strip()
if type not in {'BTC', 'ETH', 'XMR'}:
if type not in {'BMAC', 'BTC', 'ETH', 'XMR'}:
abort(400, "Invalid transaction currency!")
if type == 'BMAC':
id = 'BMAC-' + str(int(time.time()))
if not id:
abort(400, "A transaction ID is required!")

View File

@ -16,6 +16,9 @@
<div class="input-group">
<select autocomplete="off" id='type' class="form-control" name="type" required>
<option hidden disabled selected value>-- select an option --</option>
{% if SITE == 'rdrama.net' %}
<option value="BMAC">BMAC</option>
{% endif %}
<option value="BTC">BTC</option>
<option value="ETH">ETH</option>
<option value="XMR">XMR</option>