test(coupon-proxy): 修正已过时的 401 鉴权断言 #3
Reference in New Issue
Block a user
Delete Branch "feature/coupon-claim-integration"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
仿 coupon_step 在 app/api/v1/compare.py 加纯 body 透传 2 端点(MVP 不鉴权,只读 device_id/trace_id/step 打日志,不做 schema 校验)。client /api/v1/{intent/recognize, price/step} → backend 去掉 /v1 转发到 PRICEBOT_BASE_URL,接通外卖比价 client→server→pricebot-backend 链路。 - compare.py: _passthrough helper + intent/recognize + price/step - config.py: PRICEBOT_COMPARE_TIMEOUT_SEC=60(意图识别大上下文 LLM、price/step 每帧 LLM,比领券 30s 长;对齐客户端 agent ApiClient 的 60s 读超时) - main.py: 注册 compare_router - tests/test_compare_proxy.py: 2 端点参数化测试(透传/5xx→502/不可达→502/坏 JSON→400) - docs/api/{compare-intent-recognize,compare-price-step}.md + 更新 README 索引 - 待办与技术债.md P2 外卖 2 端点标 ✅(2026-05-27);电商 2 个待接(compare.py 加两行即可) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>3ff95dbmerge commit 残留的冲突标记 ba946a9d9a