add 断开链接通知

This commit is contained in:
chenbo 2023-12-13 17:52:51 +08:00
parent 20e2e3c159
commit 5bfd8a7f5d
1 changed files with 3 additions and 3 deletions

View File

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