Keep WeChat props batch xlsx in-repo under docs/wx-props-batch for reuse.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Eric 2026-11-22 11:05:57 +08:00
parent 5dd573ce22
commit 362dab20f6
7 changed files with 33 additions and 4 deletions

View File

@ -9,7 +9,8 @@
业务 API:`apps/api`。管理后台:`apps/admin`。
微信虚拟支付 / 道具目录:[`docs/wechat-virtual-pay-props.md`](docs/wechat-virtual-pay-props.md)。
微信虚拟支付 / 道具目录:[`docs/wechat-virtual-pay-props.md`](docs/wechat-virtual-pay-props.md)。
批量上传 xlsx(下次直接用):[`docs/wx-props-batch/`](docs/wx-props-batch/)。
**全端禁止 web-view 承载业务内容**(VIP / 电子书 / 视频课等须原生页)。微信 VIP 说明见 `weapp/README.md`。

View File

@ -53,7 +53,10 @@ WX_PAY_ENV=0
## 微信后台批量上传
模板:`nomadro_wx_props_batch_upload.xlsx`(桌面 + 本目录)
**项目内固定目录(下次直接用):** [`wx-props-batch/`](wx-props-batch/)
- 现用表:`wx-props-batch/nomadro_wx_props_batch_upload.xlsx`
- 微信示例:`wx-props-batch/example_batch_add_product.xlsx`
生成脚本:`apps/miniprogram/scripts/gen_wx_props_batch_xlsx.py`
| 列 | 要求 |

View File

@ -0,0 +1,23 @@
# 微信虚拟支付 · 批量上传道具
下次在微信后台「批量创建道具」直接用本目录文件。
| 文件 | 用途 |
|---|---|
| `nomadro_wx_props_batch_upload.xlsx` | **现用上传表**(含 29/298/588 等) |
| `example_batch_add_product.xlsx` | 微信官方示例格式参考 |
## 重新生成
```bash
python apps/miniprogram/scripts/gen_wx_props_batch_xlsx.py
```
会写入:
- `apps/miniprogram/docs/wx-props-batch/nomadro_wx_props_batch_upload.xlsx`
- `apps/miniprogram/docs/nomadro_wx_props_batch_upload.xlsx`(短路径副本)
- 桌面同名文件(可选方便)
道具图 SoT:`apps/admin/public/props/` → 线上 `https://admin.nomadro.cn/props/`(已 CORS)。
目录与账号说明:[`../wechat-virtual-pay-props.md`](../wechat-virtual-pay-props.md)。

View File

@ -24,9 +24,11 @@ ROWS = [
("test", "test", f"{IMG_BASE}/test.png", 1, "联调测试道具 · ¥1"),
]
_DOCS = Path(__file__).resolve().parents[1] / "docs"
OUT_DIRS = [
Path(r"c:\Users\Administrator\Desktop"),
Path(__file__).resolve().parents[1] / "docs",
_DOCS / "wx-props-batch", # 项目内固定目录(下次直接用)
_DOCS, # 短路径副本
Path(r"c:\Users\Administrator\Desktop"), # 桌面方便上传
]