|
@@ -198,7 +198,8 @@ class AesController extends HomeBaseController{ |
|
@@ -198,7 +198,8 @@ class AesController extends HomeBaseController{ |
198
|
}else{
|
198
|
}else{
|
199
|
$data=[
|
199
|
$data=[
|
200
|
'state'=>0,
|
200
|
'state'=>0,
|
201
|
- 'message'=>'返回指令错误'
|
201
|
+ 'message'=>'返回指令错误',
|
|
|
202
|
+ 'error' =>''
|
202
|
];
|
203
|
];
|
203
|
$this->apiResponse(200,'success',$data);
|
204
|
$this->apiResponse(200,'success',$data);
|
204
|
}
|
205
|
}
|
|
@@ -209,7 +210,8 @@ class AesController extends HomeBaseController{ |
|
@@ -209,7 +210,8 @@ class AesController extends HomeBaseController{ |
209
|
}else{
|
210
|
}else{
|
210
|
$data=[
|
211
|
$data=[
|
211
|
'state'=>0,
|
212
|
'state'=>0,
|
212
|
- 'message'=>'返回指令错误'
|
213
|
+ 'message'=>'返回指令错误',
|
|
|
214
|
+ 'error' =>''
|
213
|
];
|
215
|
];
|
214
|
$this->apiResponse(200,'success',$data);
|
216
|
$this->apiResponse(200,'success',$data);
|
215
|
}
|
217
|
}
|
|
@@ -257,7 +259,8 @@ class AesController extends HomeBaseController{ |
|
@@ -257,7 +259,8 @@ class AesController extends HomeBaseController{ |
257
|
}else if($key[3]=='0x00'){
|
259
|
}else if($key[3]=='0x00'){
|
258
|
$data=[
|
260
|
$data=[
|
259
|
'state'=>0,
|
261
|
'state'=>0,
|
260
|
- 'message'=>'开锁失败'
|
262
|
+ 'message'=>'开锁失败',
|
|
|
263
|
+ 'error' =>''
|
261
|
];
|
264
|
];
|
262
|
$this->apiResponse(200,'success',$data);
|
265
|
$this->apiResponse(200,'success',$data);
|
263
|
}
|
266
|
}
|
|
@@ -269,7 +272,8 @@ class AesController extends HomeBaseController{ |
|
@@ -269,7 +272,8 @@ class AesController extends HomeBaseController{ |
269
|
if ($use==0){
|
272
|
if ($use==0){
|
270
|
$data=[
|
273
|
$data=[
|
271
|
'state'=>0,
|
274
|
'state'=>0,
|
272
|
- 'message'=>'该设备为关闭状态,不能还锁'
|
275
|
+ 'message'=>'该设备为关闭状态,不能还锁',
|
|
|
276
|
+ 'error' =>''
|
273
|
];
|
277
|
];
|
274
|
$this->apiResponse(200,'success',$data);
|
278
|
$this->apiResponse(200,'success',$data);
|
275
|
}
|
279
|
}
|
|
@@ -281,7 +285,8 @@ class AesController extends HomeBaseController{ |
|
@@ -281,7 +285,8 @@ class AesController extends HomeBaseController{ |
281
|
//修改数据库设备状态
|
285
|
//修改数据库设备状态
|
282
|
$data=[
|
286
|
$data=[
|
283
|
'state'=>0,
|
287
|
'state'=>0,
|
284
|
- 'message'=>'未还床'
|
288
|
+ 'message'=>'未还床',
|
|
|
289
|
+ 'error' =>''
|
285
|
];
|
290
|
];
|
286
|
$this->apiResponse(200,'success',$data);
|
291
|
$this->apiResponse(200,'success',$data);
|
287
|
}else if($key[6]=='0x00'){
|
292
|
}else if($key[6]=='0x00'){
|