企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## 融云通讯 ### 1.检测用户是否在线 +++ post:http://www.dakaifa.net/index.php?g=App&m=Users&a=checkOnline *int:targetId=1111#用户的通讯id <<< success { "code": 200, "status": "1" } <<< error { "code": 200, "status": "0" } +++ ### 2.接口代码 ``` public function checkOnline (){ $userId=$_POST['targetId']; $ServerAPI = new \ServerAPI('kj7swf8o7owm2','sqrSkivNd3AWNc');//实例化,注意加\ $status = $ServerAPI->userCheckOnline($userId); echo $status; } ```