企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 获取通知 >[info] 获取全局通知 > 建议使用轮询方式保持连接 ## 请求地址:[https://你的域名/api/keep](https://xn--6qqv7i2xdt95b/api/keep) 请求方法:GET 请求数据:NULL 返回数据: | 名称 | 说明 | | --- | --- | | notice | 消息通知 | 请求示例: ``` request({ url: "https://demo.bottlecms.com/api/keep", method: "GET", success: (res) => { if(res.code==200){ //返回成功 console.log(res.obj); //弹出通知或红点 } } }); ``` 返回示例: ``` { "success":true, "code":200, "msg":"获取成功", "obj":{ "notice":{ "chat_total":0, "friend_apply":0, "friend_total":0, "contact_total":0, "contact_me":0, "manage_total":0 } } } ```