feat: Web管理系统 + Docker支持

- 多账号管理(异步登录、状态轮询)
- 购物车预售商品同步(倒计时/定时开售)
- 定时抢购(自动刷新、SKU选择、重试机制)
- 账号隔离调度(同账号顺序、跨账号并行)
- Web面板(任务分组、实时倒计时、批量操作)
- Dockerfile + docker-compose
This commit is contained in:
2026-03-18 13:38:17 +08:00
parent 7aea2ca2a8
commit 822a4636c0
28 changed files with 1966 additions and 66 deletions

18
server/routers/orders.py Normal file
View File

@@ -0,0 +1,18 @@
from flask import Blueprint, render_template
from server.database import get_db
bp = Blueprint('orders', __name__, url_prefix='/orders')
@bp.route('/')
def list_orders():
db = get_db()
orders = db.execute('''
SELECT o.*, a.name as account_name, t.target_url, t.snatch_time
FROM orders o
LEFT JOIN accounts a ON o.account_id = a.id
LEFT JOIN tasks t ON o.task_id = t.id
ORDER BY o.id DESC
''').fetchall()
db.close()
return render_template('orders.html', orders=orders)