forked from MarseyWorld/MarseyWorld
add BMAC TX type to rdrama
parent
5e1df64b69
commit
82331ba8bd
|
@ -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!")
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue