记录寻盘
This commit is contained in:
@@ -5,6 +5,7 @@ namespace app\common\service;
|
||||
use app\common\validate\InquiryTransmitValidate;
|
||||
use app\common\traits\crud\CrudServiceTrait;
|
||||
use app\common\model\InquiryTransmit;
|
||||
use support\Request;
|
||||
|
||||
class InquiryTransmitService
|
||||
{
|
||||
@@ -28,4 +29,21 @@ class InquiryTransmitService
|
||||
{
|
||||
return new $this->validator;
|
||||
}
|
||||
|
||||
|
||||
/** 创建 */
|
||||
public function serviceStore(Request $request, array $data = [])
|
||||
{
|
||||
$data['email'] = $data['Email'];
|
||||
$data['name'] = $data['Name'];
|
||||
$data['tel'] = $data['Tel'];
|
||||
$data['company'] = $data['Company'];
|
||||
$data['country'] = $data['Country'];
|
||||
$data['form_Url'] = $data['Form Url'];
|
||||
$data['message'] = $data['Message'];
|
||||
$data['iplocation'] = $data['IpLocation'];
|
||||
$data['ip'] = $data['Ip'];
|
||||
|
||||
return InquiryTransmit::create($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user