...
|
...
|
@@ -72,7 +72,8 @@ class AesController extends HomeBaseController{ |
|
|
if ($strKey['electricity']==0){
|
|
|
$this->apiResponse(302,'设备电量低');
|
|
|
}else{
|
|
|
$key="ff0ca2".$strKey['']."5500ef";
|
|
|
$strMac=$this->macToStr($strKey['mac_address']);
|
|
|
$key="ff0ca2".$strMac."5500ef";
|
|
|
$lockKey=$this->ToArray($key);
|
|
|
$this->apiResponse(200,'success',$lockKey);
|
|
|
}
|
...
|
...
|
@@ -82,8 +83,13 @@ class AesController extends HomeBaseController{ |
|
|
|
|
|
}
|
|
|
|
|
|
public function macToStr(){
|
|
|
|
|
|
public function macToStr($mac){
|
|
|
$mac_address=explode(":",$mac);
|
|
|
$strMac="";
|
|
|
foreach ($mac_address as $k=>$v){
|
|
|
$strMac.=$v;
|
|
|
}
|
|
|
return $strMac;
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
|