配方增补:账号级店铺盘点(/api/userIn.json shopMap)——shopee 0 家,与页下拉为空互相印证

This commit is contained in:
agent committed 2026-09-30 16:46:14 +08:00
1 parent b54e9063f1
commit eab9ec1213
3 files changed
+44

No files matched your search

+12
View File
@@ -112,3 +112,15 @@ XAGOKS9C ✅ 待发布 1 | 草稿 0 | 托特包 ¥15.90 图6
* `包装后尺寸` 与 `包装尺寸` 目前都填同一组向上取整值;如需精算需接速卖通计抛规则。
* 变种(多变种)模式未做:本配方用单品/单 SKU 路径;带变种的类目需要补变种行填写。
* 运费模板/服务模板未设置(`freightTemplateId=null`),发布前需人工在页面选或做「运费推荐生成」。
## 附:账号级店铺盘点(一次接口,最快)
`platform-shared/dxm-add-lib.mjs` 的 `readAccountShops(c)`:`GET /api/userIn.json` → `data.shopMap`
(key=shopId,value 含 `name`/`platform`)。实测 2026-09-30(子账号):
```
256 家店 → smt:61 tiktok:98 tiktokGlobal:24 aliChoice:65 ozon:5 walmart:3
```
★ **页面上的店铺下拉是子集**:速卖通页只列 10 家,`shopMap` 里是 61 家。
判断「这个登录有没有某平台店铺」用 `readAccountShops`;判断「这个店能不能在这个页面选到」才用 `listShopOptions`。