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

interface

@@ -27,18 +27,18 @@ class AesController extends HomeBaseController{ @@ -27,18 +27,18 @@ class AesController extends HomeBaseController{
27 dump($aes->encryption($message)); 27 dump($aes->encryption($message));
28 dump($aes->decryption('2857153e26d8dda190834c3a1a3f8f3c')); 28 dump($aes->decryption('2857153e26d8dda190834c3a1a3f8f3c'));
29 } 29 }
30 - /**  
31 - * @title 开锁(加密)  
32 - * @description 获取加密后的“开锁”命令  
33 - * @author 董瑞恩  
34 - * @url /portal/Aes/secretLock  
35 - * @method GET  
36 - *  
37 - * @param name:MACAddress type:String require:1 default:无 other: desc:设备MAC地址  
38 - *  
39 - *  
40 - * @return lockKey:加密的开锁指令(数组)  
41 - */ 30 +// /**
  31 +// * @title 开锁(加密)
  32 +// * @description 获取加密后的“开锁”命令
  33 +// * @author 董瑞恩
  34 +// * @url /portal/Aes/secretLock
  35 +// * @method GET
  36 +// *
  37 +// * @param name:MACAddress type:String require:1 default:无 other: desc:设备MAC地址
  38 +// *
  39 +// *
  40 +// * @return lockKey:加密的开锁指令(数组)
  41 +// */
42 public function secretLock(){ 42 public function secretLock(){
43 $MACAddress=$this->request->param('MACAddress'); 43 $MACAddress=$this->request->param('MACAddress');
44 $strKey=Db::name('equipment')->where('mac_address',$MACAddress)->find(); 44 $strKey=Db::name('equipment')->where('mac_address',$MACAddress)->find();
@@ -94,18 +94,18 @@ class AesController extends HomeBaseController{ @@ -94,18 +94,18 @@ class AesController extends HomeBaseController{
94 return $strMac; 94 return $strMac;
95 } 95 }
96 96
97 - /**  
98 - * @title 获取电压、开关状态(加密)  
99 - * @description 获得加密后“获取电压、开关状态”的命令  
100 - * @author 董瑞恩  
101 - * @url /portal/Aes/getSecretState  
102 - * @method GET  
103 - *  
104 - * @param name:MACAddress type:String require:1 default:无 other: desc:设备MAC地址  
105 - *  
106 - *  
107 - * @return lockKey:获取电压、开关状态的指令(数组)  
108 - */ 97 +// /**
  98 +// * @title 获取电压、开关状态(加密)
  99 +// * @description 获得加密后“获取电压、开关状态”的命令
  100 +// * @author 董瑞恩
  101 +// * @url /portal/Aes/getSecretState
  102 +// * @method GET
  103 +// *
  104 +// * @param name:MACAddress type:String require:1 default:无 other: desc:设备MAC地址
  105 +// *
  106 +// *
  107 +// * @return lockKey:获取电压、开关状态的指令(数组)
  108 +// */
109 109
110 public function getSecretState(){ 110 public function getSecretState(){
111 $MACAddress=$this->request->param('MACAddress'); 111 $MACAddress=$this->request->param('MACAddress');
@@ -146,19 +146,19 @@ class AesController extends HomeBaseController{ @@ -146,19 +146,19 @@ class AesController extends HomeBaseController{
146 } 146 }
147 147
148 148
149 - /**  
150 - * @title 命令解密  
151 - * @description 将设备的十六进制码进行解码,获得设备的返回信息  
152 - * @author 董瑞恩  
153 - * @url /portal/Aes/decryption  
154 - * @method GET  
155 - *  
156 - * @param name:decryKey type:String require:1 default:无 other: desc:设备返回状态(加密)  
157 - * @param name:MACAddress type:String require:1 default:无 other: desc:设备MAC地址  
158 - * @param name:type type:String require:1 default:无 other:1开锁返回指令,2状态返回指令 desc:命令类型  
159 - *  
160 - * @return code:1锁已开,0位锁已关,2为数据异常  
161 - */ 149 +// /**
  150 +// * @title 命令解密
  151 +// * @description 将设备的十六进制码进行解码,获得设备的返回信息
  152 +// * @author 董瑞恩
  153 +// * @url /portal/Aes/decryption
  154 +// * @method GET
  155 +// *
  156 +// * @param name:decryKey type:String require:1 default:无 other: desc:设备返回状态(加密)
  157 +// * @param name:MACAddress type:String require:1 default:无 other: desc:设备MAC地址
  158 +// * @param name:type type:String require:1 default:无 other:1开锁返回指令,2状态返回指令 desc:命令类型
  159 +// *
  160 +// * @return code:1锁已开,0位锁已关,2为数据异常
  161 +// */
162 public function decryption(){ 162 public function decryption(){
163 $MACAddress=$this->request->param('MACAddress'); 163 $MACAddress=$this->request->param('MACAddress');
164 $decryKey=$this->request->param('decryKey'); 164 $decryKey=$this->request->param('decryKey');