...
|
...
|
@@ -143,7 +143,7 @@ class AesController extends HomeBaseController{ |
|
|
* @param name:MACAddress type:String require:1 default:无 other: desc:设备MAC地址
|
|
|
* @param name:type type:String require:1 default:无 other: desc:命令类型 (1 开锁返回指令 2 状态返回指令)
|
|
|
*
|
|
|
* @return :code:1为锁已开,0位锁已关,2为数据异常
|
|
|
* @return code:1锁已开,0位锁已关,2为数据异常
|
|
|
*/
|
|
|
public function decryption(){
|
|
|
$MACAddress=$this->request->param('MACAddress');
|
...
|
...
|
@@ -169,7 +169,7 @@ class AesController extends HomeBaseController{ |
|
|
* @param name:key type:String require:1 default:无 other: desc:设备返回状态(未加密)
|
|
|
* @param name:type type:String require:1 default:无 other: desc:命令类型 (1 开锁返回指令 2 状态返回指令)
|
|
|
*
|
|
|
* @return :code:1为锁已开,0位锁已关,2为数据异常
|
|
|
* @return code:1锁已开,0位锁已关,2为数据异常
|
|
|
*/
|
|
|
public function state($key,$type){
|
|
|
if ($type==1){
|
...
|
...
|
|