...
|
...
|
@@ -198,7 +198,8 @@ class AesController extends HomeBaseController{ |
|
|
}else{
|
|
|
$data=[
|
|
|
'state'=>0,
|
|
|
'message'=>'返回指令错误'
|
|
|
'message'=>'返回指令错误',
|
|
|
'error' =>''
|
|
|
];
|
|
|
$this->apiResponse(200,'success',$data);
|
|
|
}
|
...
|
...
|
@@ -209,7 +210,8 @@ class AesController extends HomeBaseController{ |
|
|
}else{
|
|
|
$data=[
|
|
|
'state'=>0,
|
|
|
'message'=>'返回指令错误'
|
|
|
'message'=>'返回指令错误',
|
|
|
'error' =>''
|
|
|
];
|
|
|
$this->apiResponse(200,'success',$data);
|
|
|
}
|
...
|
...
|
@@ -257,7 +259,8 @@ class AesController extends HomeBaseController{ |
|
|
}else if($key[3]=='0x00'){
|
|
|
$data=[
|
|
|
'state'=>0,
|
|
|
'message'=>'开锁失败'
|
|
|
'message'=>'开锁失败',
|
|
|
'error' =>''
|
|
|
];
|
|
|
$this->apiResponse(200,'success',$data);
|
|
|
}
|
...
|
...
|
@@ -269,7 +272,8 @@ class AesController extends HomeBaseController{ |
|
|
if ($use==0){
|
|
|
$data=[
|
|
|
'state'=>0,
|
|
|
'message'=>'该设备为关闭状态,不能还锁'
|
|
|
'message'=>'该设备为关闭状态,不能还锁',
|
|
|
'error' =>''
|
|
|
];
|
|
|
$this->apiResponse(200,'success',$data);
|
|
|
}
|
...
|
...
|
@@ -281,7 +285,8 @@ class AesController extends HomeBaseController{ |
|
|
//修改数据库设备状态
|
|
|
$data=[
|
|
|
'state'=>0,
|
|
|
'message'=>'未还床'
|
|
|
'message'=>'未还床',
|
|
|
'error' =>''
|
|
|
];
|
|
|
$this->apiResponse(200,'success',$data);
|
|
|
}else if($key[6]=='0x00'){
|
...
|
...
|
|