|
@@ -224,7 +224,7 @@ class Cabinet extends Base
|
|
|
$BoxModel = new BoxModel();
|
|
|
$where['sc_box.cabinet_number'] = $cabinet_number;
|
|
|
$selectResult = $BoxModel->getBoxsByWhere($where);
|
|
|
- $box_status = ['1' => '空闲' , '2' => '已使用' , '3' => '锁定中'];
|
|
|
+ $box_status = ['打开','关闭'];
|
|
|
// 拼装参数
|
|
|
foreach($selectResult as $key=>$vo){
|
|
|
$selectResult[$key]['status_text'] = $box_status[$vo['box_status']];
|
|
@@ -271,6 +271,7 @@ class Cabinet extends Base
|
|
|
$box_number = input('param.box_number');
|
|
|
$box_status = input('param.box_status');
|
|
|
$ret = $this->ChangeStatus($cabinet_number , $box_number , $box_status);
|
|
|
+
|
|
|
if($ret['code'] == -1){
|
|
|
json_error(1008 , $ret['msg']);
|
|
|
}
|
|
@@ -344,19 +345,6 @@ class Cabinet extends Base
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * 自提柜箱子绑定订单号
|
|
|
- */
|
|
|
- private function box_bind_order($cabinet_number , $box_number , $order_sn){
|
|
|
- $where['cabinet_number'] = $cabinet_number;
|
|
|
- $where['box_number'] = $box_number;
|
|
|
- $update['order_sn'] = $order_sn;
|
|
|
- $update['box_status'] = 2;
|
|
|
-
|
|
|
- $BoxModel = new BoxModel();
|
|
|
- return $BoxModel->editData($where,$update);
|
|
|
- }
|
|
|
-
|
|
|
- /**
|
|
|
* 记录箱子开启/关闭
|
|
|
*/
|
|
|
private function box_action_record($cabinet_number , $box_number , $type){
|