fix: 补全普通和共享订单横幅的时间轮次信息并适配窄屏

This commit is contained in:
zzy
2026-11-03 09:51:28 +08:00
parent d4adad620d
commit f986c8deae
8 changed files with 135 additions and 17 deletions
+2
View File
@@ -592,6 +592,7 @@ def share_active():
return jsonify({"rtn_code": 401, "message": "请先登录"})
me = user["id"]
from timer import _get_remaining_seconds
from routes.rental import _rounds_summary
now_bj = _beijing_now().strftime("%Y-%m-%d %H:%M:%S")
conn = get_db()
cur = conn.cursor()
@@ -649,6 +650,7 @@ def share_active():
"remark": remark,
"remaining_seconds": remain,
"end_time": r["end_time"],
**_rounds_summary(r, r.get("rider_user_id") or r["user_id"]),
})
return jsonify({"rtn_code": 0, "data": result})