fix: deposit js error
This commit is contained in:
parent
b9d556ce71
commit
64f682fa11
2 changed files with 4 additions and 4 deletions
|
@ -1,2 +1,2 @@
|
|||
|
||||
__version__ = '0.4.8'
|
||||
__version__ = '0.4.9'
|
||||
|
|
|
@ -81,16 +81,16 @@ deposit_key = (k) => {
|
|||
if (k == 'ok') {
|
||||
switch (mode) {
|
||||
case Mode.Deposit:
|
||||
window.location.href = '/deposit?n=' + parseInt(deposit) + append_query_string;
|
||||
window.location.href = '/deposit?n=' + parseInt(deposit);
|
||||
break;
|
||||
case Mode.Buy:
|
||||
window.location.href = '/buy?pid=' + product_id + '&price=' + parseInt(deposit) + append_query_string;
|
||||
window.location.href = '/buy?pid=' + product_id + '&price=' + parseInt(deposit);
|
||||
break;
|
||||
case Mode.Transfer:
|
||||
if (target_user == null) {
|
||||
return;
|
||||
}
|
||||
window.location.href = '/transfer?target=' + target_user + '&n=' + parseInt(deposit) + append_query_string;
|
||||
window.location.href = '/transfer?target=' + target_user + '&n=' + parseInt(deposit);
|
||||
break;
|
||||
}
|
||||
mode = Mode.Deposit;
|
||||
|
|
Loading…
Reference in a new issue