You've already forked guangan
用户随手拍后台差详情
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
namespace plugin\ticket\controller;
|
||||
|
||||
use plugin\ticket\model\TicketType;
|
||||
use plugin\ticket\model\TicketUserShare;
|
||||
use think\admin\Controller;
|
||||
use think\admin\helper\QueryHelper;
|
||||
@ -14,11 +15,12 @@ class UserShare extends Controller
|
||||
public function index()
|
||||
{
|
||||
$this->title = '用户随手拍';
|
||||
$this->type_list = TicketType::getTypeList();
|
||||
TicketUserShare::mQuery()->layTable(function () {
|
||||
|
||||
}, function (QueryHelper $query) {
|
||||
$query->like(['title|content|contact_name|ticket_address|contact_phone#keyword'])
|
||||
->dateBetween(['create_at', 'last_activity_at'])
|
||||
$query->like(['title|content|ticket_address|contact_phone#keyword'])
|
||||
->dateBetween(['create_at'])
|
||||
->equal(['status', 'type_id']);
|
||||
$query->with(['user'])->append(['imgs_arr', 'status_text', 'type_name', 'last_reply']);
|
||||
});
|
||||
|
@ -40,6 +40,7 @@ class UserShare extends Auth
|
||||
'ticket_address.require' => '地址不能为空',
|
||||
'contact_name.default' => $this->account->user() ? $this->account->user()['nickname'] : '用户',
|
||||
]);
|
||||
$data['imgs'] = arr2str($data['imgs'], '|');
|
||||
$data['user_id'] = $this->usid;
|
||||
$id = TicketUserShare::query()->insert($data, true);
|
||||
$this->success('添加随手拍成功', $id);
|
||||
|
Reference in New Issue
Block a user