You've already forked guangan
工单
This commit is contained in:
26
plugs/think-plugs-ticket/src/controller/UserShare.php
Normal file
26
plugs/think-plugs-ticket/src/controller/UserShare.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\ticket\controller;
|
||||
|
||||
use plugin\ticket\model\TicketUserShare;
|
||||
use think\admin\Controller;
|
||||
use think\admin\helper\QueryHelper;
|
||||
|
||||
/**
|
||||
* 用户随手拍
|
||||
*/
|
||||
class UserShare extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$this->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']);
|
||||
});
|
||||
}
|
||||
}
|
25
plugs/think-plugs-ticket/src/controller/api/Auth.php
Normal file
25
plugs/think-plugs-ticket/src/controller/api/Auth.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\ticket\controller\api;
|
||||
|
||||
use plugin\account\controller\api\Auth as AuthController;
|
||||
use think\exception\HttpResponseException;
|
||||
|
||||
class Auth extends AuthController
|
||||
{
|
||||
/**
|
||||
* 控制器初始化
|
||||
* @return void
|
||||
*/
|
||||
protected function initialize()
|
||||
{
|
||||
try {
|
||||
parent::initialize();
|
||||
$this->checkUserStatus(false);
|
||||
} catch (HttpResponseException $exception) {
|
||||
throw $exception;
|
||||
} catch (\Exception $exception) {
|
||||
$this->error($exception->getMessage());
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\ticket\controller\api\auth;
|
||||
|
||||
|
||||
use plugin\ticket\controller\api\Auth;
|
||||
|
||||
/**
|
||||
* 用户随手拍小程序接口
|
||||
*/
|
||||
class UserShare extends Auth
|
||||
{
|
||||
|
||||
}
|
10
plugs/think-plugs-ticket/src/model/TicketUserShare.php
Normal file
10
plugs/think-plugs-ticket/src/model/TicketUserShare.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\ticket\model;
|
||||
|
||||
use think\admin\Model;
|
||||
|
||||
class TicketUserShare extends Model
|
||||
{
|
||||
|
||||
}
|
@ -1,7 +1,4 @@
|
||||
<form class="layui-form layui-card" action="{:sysuri()}" data-auto="true" method="post" autocomplete="off" data-table-id="ticketTable">
|
||||
<h1 style="color: red; text-align: center; padding: 20px; border: 1px solid red; margin-bottom: 20px">
|
||||
原则上不允许私自创建或修改工单!!!
|
||||
</h1>
|
||||
<div class="layui-row">
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">工单标题</label>
|
||||
|
Reference in New Issue
Block a user