修复
This commit is contained in:
parent
3b36831f5b
commit
018e4ae40b
@ -19,6 +19,9 @@ class IndexController extends BaseController{
|
||||
|
||||
public function mqtt(){
|
||||
$parmas=$this->request->post();
|
||||
if(!$parmas|| !isset($parmas['username']) || $parmas['username']==''){
|
||||
return json(['msg'=>'参数错误']);
|
||||
}
|
||||
$data=[
|
||||
'username'=>$parmas['username'],
|
||||
'topic'=>$parmas['topic'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user