Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fix ip docs #188

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,17 @@ QQ 机器人通过开放的平台承载机器人的定制化功能,让开发
#### 8.5 IP白名单配置
<img :src="$withBotBase('/images/introduce/ip_white_list.png')" alt="IP白名单配置">

为了防范接口调用安全风险,平台将支持机器人配置IP白名单。
为了防范接口调用安全风险,平台将支持机器人配置IP白名单。(当前只针对新增机器人默认启用ip白名单,后续会逐渐对旧的机器人进行灰度)

配置了IP白名单之后,开放平台将会在`正式环境`对开发者的部署IP进行限制:只有白名单IP才能连接websocket和调用OPENAPI的接口。当前IP白名单只作用于正式环境,不影响机器人在沙箱环境的使用。
IP白名单功能启用之后,开放平台将会在正式环境对开发者的部署IP进行限制:只有白名单IP才能连接websocket和调用OPENAPI的接口。当前IP白名单只作用于正式环境,不影响机器人在沙箱环境的使用。接口域名如下:

开启IP白名单功能后将不支持关闭,不允许填写空IP白名单。对于新增机器人,平台将会强制开启IP白名单功能,并限制只有填写了IP白名单才能提审和上线。

- **获取调用凭证**:https://bots.qq.com/app/getAppAccessToken 不区分正式环境、沙箱环境
- **正式环境**:https://api.sgroup.qq.com/
- **沙箱环境**:https://sandbox.api.sgroup.qq.com 沙箱环境地址只会收到在开发者平台配置的沙箱频道、沙箱私信QQ号、沙箱群、沙箱单聊QQ号的事件,且调用openapi仅能操作沙箱环境


对于新增机器人,平台默认启用IP白名单功能,并限制只有填写了IP白名单才能提审和上线。

::: tip 温馨提示

Expand Down
Loading