落地私聊附件询价:发卡走 H5 收 Excel/PDF,认成口播再复用三线文字流程,避免附件卡在识别或退成纯文本。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-18 17:25:38 +08:00
co-authored by Cursor
parent 8219dce84b
commit 65ef75f1ef
19 changed files with 2420 additions and 8 deletions
@@ -46,6 +46,23 @@ def issue_copy_token(work_order_no: str, *, ttl_seconds: int = COPY_TTL_SECONDS)
return token
def inquiry_form_base() -> str:
"""H5 公网根路径(含 /inquiry-form),不含 userid。"""
return _form_base()
def build_upload_url(token: str) -> str:
"""
拼附件上传页:{inquiry-form}/upload/{token}。
token 为空则返回空串,调用方不要出跳转按钮。
"""
raw = (token or "").strip()
if not raw:
return ""
return f"{_form_base()}/upload/{raw}"
def lookup_copy_token(token: str) -> Optional[str]:
"""校验 token 未过期;返回工单号或 None。不消费,可重复打开。"""
raw = (token or "").strip()