From 30ac12f48b2e129dceb3d7da0591e9f61cd32f41 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Wed, 10 Dec 2025 13:35:57 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/GateController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/GateController.php b/app/Http/Controllers/Admin/GateController.php index 85f5df8..8006b8a 100644 --- a/app/Http/Controllers/Admin/GateController.php +++ b/app/Http/Controllers/Admin/GateController.php @@ -138,7 +138,7 @@ class GateController extends CommonController $gateLog = GateLog::add($this->getUserId(), $all['code'], $all['person_no'] ?? [], $all['car_no'] ?? [], $remark); if ($all['type'] == 1) { // 入场 - Visit::where('code', $all['code'])->update(['audit_status' => 3, 'person_no' => $all['person_no'] ?? '', 'car_no' => $all['car_no'] ?? '']); + Visit::where('code', $all['code'])->update(['audit_status' => 3]); } if ($all['type'] == 2) { Visit::where('code', $all['code'])->update(['audit_status' => 4]); From e2d72f93f03e161d9d392d93184fe5804403763b Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Wed, 10 Dec 2025 16:19:03 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/OtherController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/OtherController.php b/app/Http/Controllers/Admin/OtherController.php index 37b4c43..aa86ac7 100644 --- a/app/Http/Controllers/Admin/OtherController.php +++ b/app/Http/Controllers/Admin/OtherController.php @@ -32,7 +32,7 @@ class OtherController extends CommonController { $all = \request()->all(); $show_all = request('show_all', 0); - $list = Admin::where(function ($query) use ($all, $show_all) { + $list = Admin::with('department')->where(function ($query) use ($all, $show_all) { if (isset($all['department_id'])) { $query->where('department_id', $all['department_id']); } From 177877196cf9a818880ee459289970b8c302a161 Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Wed, 10 Dec 2025 16:34:49 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/Visit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Visit.php b/app/Models/Visit.php index 9952eed..719c1a8 100644 --- a/app/Models/Visit.php +++ b/app/Models/Visit.php @@ -69,7 +69,7 @@ class Visit extends SoftDeletesModel public function getTypeTextAttribute() { - $array = [1 => '普通访客', 2 => '施工访客', 3 => '物流访客']; + $array = [1 => '普通访客', 2 => '施工访客', 3 => '物流司机']; return $array[$this->type] ?? ''; }