...
|
...
|
@@ -69,9 +69,13 @@ class AesController extends HomeBaseController{ |
|
|
$MACAddress=$this->request->param('MACAddress');
|
|
|
$strKey=Db::name('equipment')->where('mac_address',$MACAddress)->find();
|
|
|
if (!empty($strKey)){
|
|
|
if ($strKey['electricity']==0){
|
|
|
$this->apiResponse(302,'设备电量低');
|
|
|
}else{
|
|
|
$key="ff0ca2".$MACAddress."5500ef";
|
|
|
$lockKey=$this->ToArray($key);
|
|
|
$this->apiResponse(200,'success',$lockKey);
|
|
|
}
|
|
|
}else{
|
|
|
$this->apiResponse(301,'MAC地址未认证');
|
|
|
}
|
...
|
...
|
|