From f67850dafee5907b13ad862a114cbe520e23e751 Mon Sep 17 00:00:00 2001 From: xman <1946321327@qq.com> Date: Sat, 31 May 2025 17:12:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=9F=E8=BF=9B=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/orders/Dispatch2.php | 6 ++++++ 1 file changed, 6 insertions(+) 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) {