From ee7058d4de2a2a7da3483e40fe0b8549dd64ec9b Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 28 Nov 2024 13:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/controller/UserShare.php | 26 +++++++++++++++++++ .../src/controller/api/Auth.php | 25 ++++++++++++++++++ .../src/controller/api/auth/UserShare.php | 14 ++++++++++ .../src/model/TicketUserShare.php | 10 +++++++ .../src/view/ticket/form.html | 3 --- 5 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 plugs/think-plugs-ticket/src/controller/UserShare.php create mode 100644 plugs/think-plugs-ticket/src/controller/api/Auth.php create mode 100644 plugs/think-plugs-ticket/src/controller/api/auth/UserShare.php create mode 100644 plugs/think-plugs-ticket/src/model/TicketUserShare.php diff --git a/plugs/think-plugs-ticket/src/controller/UserShare.php b/plugs/think-plugs-ticket/src/controller/UserShare.php new file mode 100644 index 0000000..bcedc28 --- /dev/null +++ b/plugs/think-plugs-ticket/src/controller/UserShare.php @@ -0,0 +1,26 @@ +title = '用户随手拍'; + TicketUserShare::mQuery()->layTable(function () { + + }, function (QueryHelper $query) { + $query->like(['title|content|contact_name|ticket_address|contact_phone#keyword']) + ->dateBetween(['create_at', 'last_activity_at']) + ->equal(['status', 'type_id']); + $query->with(['user'])->append(['imgs_arr', 'status_text', 'type_name', 'last_reply']); + }); + } +} \ No newline at end of file diff --git a/plugs/think-plugs-ticket/src/controller/api/Auth.php b/plugs/think-plugs-ticket/src/controller/api/Auth.php new file mode 100644 index 0000000..e1e5b11 --- /dev/null +++ b/plugs/think-plugs-ticket/src/controller/api/Auth.php @@ -0,0 +1,25 @@ +checkUserStatus(false); + } catch (HttpResponseException $exception) { + throw $exception; + } catch (\Exception $exception) { + $this->error($exception->getMessage()); + } + } +} \ No newline at end of file diff --git a/plugs/think-plugs-ticket/src/controller/api/auth/UserShare.php b/plugs/think-plugs-ticket/src/controller/api/auth/UserShare.php new file mode 100644 index 0000000..8bd764b --- /dev/null +++ b/plugs/think-plugs-ticket/src/controller/api/auth/UserShare.php @@ -0,0 +1,14 @@ + -

- 原则上不允许私自创建或修改工单!!! -