| Modifier and Type | Field and Description |
|---|---|
boolean |
sandbox |
| Constructor and Description |
|---|
Config() |
| Modifier and Type | Method and Description |
|---|---|
void |
sandbox()
在沙箱环境与正式环境 之前切换 默认正式环境
|
void |
setWebhookport(Integer webhookport)
设置webhook服务端口 默认为0时不开启webhook
需要将q.qq配置链接设置为 "https://you-domain/webhook0" 路径 若设置此项 则 配置项 code sandbox reconnect webhookport 可能会失效 |
void |
setWslink(String wslink)
设置WebSocket链接地址 ##通常用于webhook转发 也可用于固定地址减少请求 加快启动速度
|
public void sandbox()
public void setWslink(String wslink)
wslink - 配置后将不再通过/gateway请求获的地址(wss://api.sgroup.qq.com/websocket)public void setWebhookport(Integer webhookport)
webhookport - Copyright © 2025. All rights reserved.