作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

... ... @@ -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;
}
/**
... ...
... ... @@ -58,6 +58,7 @@ class UsersController extends HomeBaseController{
$this->apiResponse(301,'未支付押金');
}
}
/**
* @title 用户使用状态验证
* @description 判断用户当前是否在使用设备
... ...