s
This commit is contained in:
parent
1349f74c45
commit
b051f7776c
|
@ -67,7 +67,7 @@ async def lnurl_callback(cp_id):
|
|||
wallet_id=cp.wallet,
|
||||
amount=int(amount_received / 1000),
|
||||
memo=cp.lnurl_title,
|
||||
webhook=url_for("copilot.api_copilot_hooker", copilot_id=cp_id, amount=int(amount_received / 1000), _external=False),
|
||||
webhook=url_for("copilot.api_copilot_hooker", copilot_id=cp_id, amount=int(amount_received / 1000), _external=True),
|
||||
description_hash=hashlib.sha256((LnurlPayMetadata(json.dumps([["text/plain", str(cp.lnurl_title)]]))).encode("utf-8")).digest(),
|
||||
extra={"tag": "copilot", "comment": comment},
|
||||
)
|
||||
|
@ -77,5 +77,5 @@ async def lnurl_callback(cp_id):
|
|||
disposable=False,
|
||||
routes=[],
|
||||
)
|
||||
print(url_for("copilot.api_copilot_hooker", copilot_id=cp_id, amount=int(amount_received / 1000), _external=False))
|
||||
print(url_for("copilot.api_copilot_hooker", copilot_id=cp_id, amount=int(amount_received / 1000), _external=True))
|
||||
return jsonify(resp.dict())
|
|
@ -67,6 +67,7 @@ async def panel(copilot_id):
|
|||
@copilot_ext.route("/api/v1/copilot/hook/<copilot_id>/<amount>/", methods=["GET"])
|
||||
async def api_copilot_hooker(copilot_id, amount):
|
||||
print("amount")
|
||||
data = ""
|
||||
copilot = await get_copilot(copilot_id)
|
||||
print("amount")
|
||||
if not copilot:
|
||||
|
|
Loading…
Reference in New Issue
Block a user