add 断开链接通知
This commit is contained in:
parent
20e2e3c159
commit
5bfd8a7f5d
|
@ -15,7 +15,7 @@ class DataCollectController extends BaseApiController
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$parmas = $this->request->post();
|
$parmas = $this->request->post();
|
||||||
Log::info(json_encode($parmas));
|
Log::info('采集消息发布'.json_encode($parmas));
|
||||||
if(!$parmas || !isset($parmas['username']) || $parmas['username']==''){
|
if(!$parmas || !isset($parmas['username']) || $parmas['username']==''){
|
||||||
return $this->fail('参数错误');
|
return $this->fail('参数错误');
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ class DataCollectController extends BaseApiController
|
||||||
LandCollection::create($data);
|
LandCollection::create($data);
|
||||||
|
|
||||||
// 报警监测
|
// 报警监测
|
||||||
$monitorThreshold = MonitorThreshold::find()->toArray();
|
$monitorThreshold = MonitorThreshold::find();
|
||||||
|
|
||||||
|
|
||||||
return $this->success('接收成功', ['user_name'=>$parmas['username'], 'topic'=>$parmas['topic']]);
|
return $this->success('接收成功', ['user_name'=>$parmas['username'], 'topic'=>$parmas['topic']]);
|
||||||
|
@ -62,6 +62,6 @@ class DataCollectController extends BaseApiController
|
||||||
public function disabled()
|
public function disabled()
|
||||||
{
|
{
|
||||||
$parmas = $this->request->post();
|
$parmas = $this->request->post();
|
||||||
Log::info(json_encode($parmas));
|
Log::info('连接断开事件'.json_encode($parmas));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue