Fixed LNURL bug
This commit is contained in:
parent
cf3c5d83fe
commit
091f9b74f3
2 changed files with 3 additions and 2 deletions
|
|
@ -118,7 +118,7 @@ new Vue({
|
||||||
|
|
||||||
this.qrCodeDialog.data = _.clone(link)
|
this.qrCodeDialog.data = _.clone(link)
|
||||||
console.log(this.qrCodeDialog.data)
|
console.log(this.qrCodeDialog.data)
|
||||||
this.qrCodeDialog.data.url = window.location.host
|
this.qrCodeDialog.data.url = window.location.protocol + "//" + window.location.host
|
||||||
this.qrCodeDialog.show = true
|
this.qrCodeDialog.show = true
|
||||||
},
|
},
|
||||||
openUpdateDialog: function (linkId) {
|
openUpdateDialog: function (linkId) {
|
||||||
|
|
|
||||||
|
|
@ -156,7 +156,7 @@ async def api_lnurl_multi_response(unique_hash, id_unique_hash):
|
||||||
return jsonify({"status": "ERROR", "reason": "LNURL-withdraw not found."}), HTTPStatus.OK
|
return jsonify({"status": "ERROR", "reason": "LNURL-withdraw not found."}), HTTPStatus.OK
|
||||||
|
|
||||||
usescsv = usescsv[1:]
|
usescsv = usescsv[1:]
|
||||||
link = update_withdraw_link(link.id, used=link.used + 1, usescsv=usescsv)
|
link = update_withdraw_link(link.id, usescsv=usescsv)
|
||||||
return jsonify(link.lnurl_response.dict()), HTTPStatus.OK
|
return jsonify(link.lnurl_response.dict()), HTTPStatus.OK
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -189,6 +189,7 @@ async def api_lnurl_callback(unique_hash):
|
||||||
|
|
||||||
changes = {
|
changes = {
|
||||||
"open_time": link.wait_time + now,
|
"open_time": link.wait_time + now,
|
||||||
|
"used": link.used + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
update_withdraw_link(link.id, **changes)
|
update_withdraw_link(link.id, **changes)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue