Compare commits

..

1 Commits

Author SHA1 Message Date
陈世睿 6a509d3889 心跳掉线判定超时从10分钟调成1小时
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 21:05:32 +08:00
-8
View File
@@ -119,14 +119,6 @@ async def price_step(request: Request) -> dict[str, Any]:
return await _passthrough(request, "/api/price/step")
@router.post("/trace/epilogue", summary="比价结果页尾声帧 (透传到 pricebot, 用户视角截图入 trace)")
async def trace_epilogue(request: Request) -> dict[str, Any]:
# App 收到 done、渲染完结果页后,把自己页面的截图(base64)传给 pricebot 存进 trace
# 目录并触发重传 —— trace 里补上"用户实际看到的汇总页"(步骤帧只有目标 App 画面)。
# body ~几百 KB(截图 base64), 透传壳同 finalize(带 trace_id 亲和)。
return await _passthrough(request, "/api/trace/epilogue")
@router.post("/trace/finalize", summary="比价 trace 收尾上云 (透传到 pricebot, 终止/未识别拿 trace_url)")
async def trace_finalize(request: Request) -> dict[str, Any]:
# 用户终止 / Phase1 未识别没走到 done 帧, pricebot 没上云也没回传 trace_url。客户端收尾时