...
|
...
|
@@ -71,12 +71,14 @@ class AesController extends HomeBaseController{ |
|
|
if (!empty($strKey)){
|
|
|
if ($strKey['electricity']==0){
|
|
|
$this->apiResponse(302,'设备电量低');
|
|
|
}else{
|
|
|
}
|
|
|
if ($strKey['use']==1){
|
|
|
$this->apiResponse(303,'当前设备正在使用');
|
|
|
}
|
|
|
$strMac=$this->macToStr($strKey['mac_address']);
|
|
|
$key="ff0ca2".$strMac."5500ef";
|
|
|
$lockKey=$this->ToArray($key);
|
|
|
$this->apiResponse(200,'success',$lockKey);
|
|
|
}
|
|
|
}else{
|
|
|
$this->apiResponse(301,'MAC地址未认证');
|
|
|
}
|
...
|
...
|
|