fix: 补全普通和共享订单横幅的时间轮次信息并适配窄屏
This commit is contained in:
@@ -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})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user