From ea491c2656bfc606d4ce761e2a6088e7a330638f Mon Sep 17 00:00:00 2001 From: cody <648753004@qq.com> Date: Fri, 19 Sep 2025 16:48:44 +0800 Subject: [PATCH] =?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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Admin/GateController.php b/app/Http/Controllers/Admin/GateController.php index 6c24e50..4230056 100644 --- a/app/Http/Controllers/Admin/GateController.php +++ b/app/Http/Controllers/Admin/GateController.php @@ -124,9 +124,9 @@ class GateController extends CommonController return $this->fail([ResponseCode::ERROR_PARAMETER, implode(',', $validator->errors()->all())]); } $check = Visit::where(function ($query) use ($all) { - $query->where('person_no', "{$all['keyword']}") - ->orWhere('idcard', "{$all['keyword']}") - ->orWhere('code', "{$all['keyword']}"); + $query->where('person_no', "{$all['code']}") + ->orWhere('idcard', "{$all['code']}") + ->orWhere('code', "{$all['code']}"); })->first(); if (empty($check)) { return $this->fail([ResponseCode::ERROR_BUSINESS, '拜访记录不存在']);