You've already forked guangan
UserShare
This commit is contained in:
@ -32,15 +32,13 @@ class UserShare extends Auth
|
||||
$data = $this->_vali([
|
||||
'title.default' => '用户随手拍',
|
||||
'content.require' => '内容不能为空',
|
||||
'imgs.default' => [],
|
||||
'imgs.array' => '图片异常',
|
||||
'imgs.default' => '',
|
||||
'type_id.require' => '类型不能为空',
|
||||
'contact_phone.require' => '手机号不能为空',
|
||||
'ticket_region.require' => '地址不能为空',
|
||||
'ticket_address.require' => '地址不能为空',
|
||||
'contact_name.default' => $this->account->user() ? $this->account->user()['nickname'] : '用户',
|
||||
]);
|
||||
$data['imgs'] = str2arr($data['imgs'], '|');
|
||||
$data['user_id'] = $this->usid;
|
||||
$id = TicketUserShare::query()->insert($data, true);
|
||||
$this->success('添加随手拍成功', $id);
|
||||
|
Reference in New Issue
Block a user