This commit is contained in:
Alex55 2026-03-24 18:54:28 +02:00
parent ed5b73f12c
commit f2370bf4e5
3 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@ -29,6 +29,7 @@ def get_image(filename):
@main.route("/orders/api_payments", methods=["POST", "GET"])
def index1():
DB_PATH = "./files/rokky.db"
# Получаем все GET-параметры
params = request.args.to_dict()
logging.warn(f"newOrder: {params}")
@ -42,11 +43,11 @@ def index1():
date = params.get("date")
# всё остальное сохраняем как JSON
content = json.dumps(params, ensure_ascii=False)
send_telegram(content)
message = f"🔹Спасибо за покупку в WST Keys (West Store Trusted Keys)\n\n ⏳ Ваш заказ обрабатывается и будет доставлен автоматически"
create_messagea(id_i, message)
name_p, im = get_product(id_d)
# name_p, im = get_product(id_d)
sku_rokky, price_rokky = get_sku(id_d)
@ -77,6 +78,7 @@ def index1():
@main.route("/newOrder", methods=["POST"])
def new_order():
if not request.is_json:
return jsonify({"error": "Invalid content type"}), 400