init
This commit is contained in:
36
config/README.md
Normal file
36
config/README.md
Normal file
@@ -0,0 +1,36 @@
|
||||
# 配置文件
|
||||
|
||||
## 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` 同步。无人在线时发企微「谁在线啊」。
|
||||
Reference in New Issue
Block a user