feat: CPS 引擎(三联盟适配器 + 方案驱动推荐 + 6 接口 + 降级)

美团/京东/淘宝联盟适配器(选品/搜索/转链,未配置 key 优雅降级),
CPS 四表五层骨架,方案驱动推荐零新增 LLM(发型/买同款/到店试穿/场合),
定时同步 + 点击日志 + 最近优惠;outfit_plan 容错迁移 occasion 列;
Dockerfile 补 mesa/nodejs 运行时。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-07-31 15:48:30 +08:00
co-authored by Claude Opus 4.7
parent fd13efb9c0
commit 76100a7131
35 changed files with 1835 additions and 7 deletions
+7 -1
View File
@@ -45,7 +45,12 @@ for item in \
"GET /outfit/plan/list 0" \
"GET /partner-store/list 0" \
"GET /member/plan/list 0" \
"GET /member/status 0" ; do
"GET /member/status 0" \
"GET /cps/category/list 0" \
"GET /cps/product/list?source=meituan_ota&category_code=beauty 0" \
"GET /cps/plan/recommend?plan_id=0&scene=haircut 50" \
"GET /cps/wardrobe/upgrade?item_id=0 50" \
"GET /cps/my/recent 0" ; do
set -- $item
METHOD="$1"; PATH_="$2"; ALLOW="${3:-0}"
RESP=$(curl -s -X "$METHOD" "$BASE$PATH_" -H "$AUTH")
@@ -64,6 +69,7 @@ post_check "/outfit/plan/review" '{"plan_id":0,"action":"fav"}' "50"
post_check "/member/order/create" '{"plan_id":1}' "50"
post_check "/ad/reward/claim" '{"ad_type":"effect_extra"}' "50"
post_check "/outfit/generate" '{"start_date":"2026-08-01","end_date":"2026-08-07","location":"上海"}' "50"
post_check "/cps/product/link" '{"product_id":0,"scene":"item_buy"}' "50,51"
post_check "/user/change-password" '{"old_password":"smoketest123","new_password":"smoketest456"}'
# 4. 裸回调(无鉴权;no_order 预期返回 fail