|
@@ -396,7 +396,7 @@ class Cabinet extends Base
|
|
|
$box_number = input('param.box_number');
|
|
|
$box_status = input('param.box_status');
|
|
|
$cabinet = CabinetModel::where('cabinet_code',$cabinet_code)->find();
|
|
|
- $ret = $this->ChangeStatus($cabinet['cabinet_number'] , $box_number , $box_status);
|
|
|
+ $ret = $this->ChangeStatus($cabinet['id'] , $box_number , $box_status);
|
|
|
|
|
|
if($ret['code'] == -1){
|
|
|
json_error(1008 , $ret['msg']);
|