feat条件单候选展示交易户资金,并支持打开实例划转。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -586,13 +586,15 @@ def api_open_url(iid: int):
|
||||
inst = get_instance(iid)
|
||||
if not inst:
|
||||
return jsonify({"ok": False, "msg": "不存在"}), 404
|
||||
tab = (request.args.get("tab") or "").strip() or None
|
||||
url = build_embed_open_url(
|
||||
inst["base_url"],
|
||||
bridge_token=inst["bridge_token"],
|
||||
embed_path=inst.get("embed_path") or "/embed",
|
||||
ttl_sec=3600,
|
||||
tab=tab,
|
||||
)
|
||||
return jsonify({"ok": True, "url": url, "base_url": inst["base_url"]})
|
||||
return jsonify({"ok": True, "url": url, "base_url": inst["base_url"], "tab": tab})
|
||||
|
||||
|
||||
@app.route("/api/settings/update/hub/version", methods=["GET"])
|
||||
|
||||
Reference in New Issue
Block a user