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 @@ + -

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