Files
tw/config/README.md
2026-02-27 16:03:04 +08:00

37 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 配置文件
## transfer_groups.json
店铺 → 转接分组映射静态。不同店铺acc_id对应不同客服分组。
```json
{
"default": "20252916034",
"小威哥1216": "20252916034",
"另一店铺": "12345678"
}
```
- **default**:未配置的店铺使用的默认分组 ID
- **其他 key**:店铺 `acc_id`
- **value**:该店铺转接时使用的分组 ID
---
## 设计师派单SQLite可选
同一设计师在不同店铺对应不同 group_id转人工时按需查询在线状态从在线设计师中轮询派单。
**初始化数据**
```bash
python scripts/init_designer_roster.py example # 写入示例
python scripts/init_designer_roster.py list # 查看当前数据
```
**数据库**`db/designer_roster_db/roster.db`
- `designers`设计师name, wechat_user_id
- `designer_shops`:设计师在某店铺的 group_id同一人不同店铺不同分组
- `designer_online`:在线状态(转人工时按需查询外部 API 同步)
**接入**`.env` 配置 `DESIGNER_ROSTER_API`(如 `http://xxx/online`),转人工时 GET 一次,用 `online_users` 同步。无人在线时发企微「谁在线啊」。