## 融云通讯
### 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;
}
```