fix(trading): cart count status=101 识别为空车,区分空车与获取失败

This commit is contained in:
2026-08-17 01:42:08 +08:00
parent 48c6f2a28f
commit daa5555fd4
6 changed files with 279 additions and 4 deletions
+1
View File
@@ -607,6 +607,7 @@ docker compose --profile gateway up -d
- `POST /api/cart/add` — 加购,入参 `{item_url, quantity?, variant_id?, choice?}`
- `POST /api/cart/status` — 调 cart count API,返回购物车商品件数
(空车是正常结果:`count=0, raw_status="101"`;获取失败才报错 5002)
- `POST /api/cart/clear` — 清空购物车(UI 点击 `button[aria-label="削除"]`
- `POST /api/cart/remove` — 删除指定 `item_id`