From 0dd057c9c8139f71f06954ba1c576357dfb5075c Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 19 Mar 2025 11:17:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../think-plugs-inspection/src/controller/api/auth/Record.php | 3 --- .../think-plugs-inspection/src/controller/api/auth/Ticket.php | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/plugs/think-plugs-inspection/src/controller/api/auth/Record.php b/plugs/think-plugs-inspection/src/controller/api/auth/Record.php index d8a2374..c54f392 100644 --- a/plugs/think-plugs-inspection/src/controller/api/auth/Record.php +++ b/plugs/think-plugs-inspection/src/controller/api/auth/Record.php @@ -39,8 +39,6 @@ class Record extends Auth $result = $this->_vali([ 'record_id.require' => '记录ID不能为空', 'record_id.integer' => '记录ID必须是整数', - 'error.require' => '巡检结果不能为空', - 'error.in:0,1' => '巡检结果范围异常', 'content.require' => '记录内容不能为空', 'imgs.require' => '记录图片不能为空' ]); @@ -52,7 +50,6 @@ class Record extends Auth $lng = $this->request->post('lng'); $record->status = 1; $record->imgs = $result['imgs']; - $record->error = $result['error']; $record->content = $result['content']; $record->points()->save([ 'staff_id' => $this->staff->id, diff --git a/plugs/think-plugs-inspection/src/controller/api/auth/Ticket.php b/plugs/think-plugs-inspection/src/controller/api/auth/Ticket.php index d600df9..2779b2b 100644 --- a/plugs/think-plugs-inspection/src/controller/api/auth/Ticket.php +++ b/plugs/think-plugs-inspection/src/controller/api/auth/Ticket.php @@ -28,7 +28,7 @@ class Ticket extends Auth $ticket_region = $this->request->post('ticket_region'); $ticket_address = $this->request->post('ticket_address'); $imgs = $this->request->post('imgs'); - $ticket_work_use = $this->request->post('ticket_work_use'); + $work_days = $this->request->post('work_days'); $data = [ 'user_id' => $this->staff->id, 'type_id' => $type_id, @@ -42,7 +42,7 @@ class Ticket extends Auth 'contact_name' => $this->staff->name, 'contact_phone' => $this->staff->phone, 'status' => 0, - 'work_days' => $ticket_work_use + 'work_days' => $work_days ]; if (!empty($record)) { $ticket = $record->ticket()->save($data);