diff --git a/application/admin/controller/orders/Dispatch2.php b/application/admin/controller/orders/Dispatch2.php index 04c1c06..03b30b2 100644 --- a/application/admin/controller/orders/Dispatch2.php +++ b/application/admin/controller/orders/Dispatch2.php @@ -83,6 +83,12 @@ class Dispatch2 extends Backend $row->is_disabled = in_array($row->status, $this->model->btnActiveStatusList('disabled_status')); $row->btn_record = in_array($row->status, $this->model->btnActiveStatusList('btn_record')) && $this->auth->check('orders/dispatchrecord/add'); + if(!in_array($row->status, $this->model->btnActiveStatusList('btn_record')) ){ + if($row->follow != 2){ //如果节点维护正常,不会有种数据,所以不用担心循环的问题 + $row->follow = 2; + $row->save(); + } + } if($row->btn_record){ if($row->type == 2) {