...
|
...
|
@@ -103,6 +103,7 @@ class FormController extends WeChatBaseController |
|
|
'take_time' => 'require',
|
|
|
// 'insure_time' => 'require',
|
|
|
'remit' => 'require',
|
|
|
'recommend' => 'require',
|
|
|
]);
|
|
|
$validate->message([
|
|
|
'insurance_company_id' => '请选择保险公司!',
|
...
|
...
|
@@ -123,6 +124,7 @@ class FormController extends WeChatBaseController |
|
|
'take_time' => '请选择合同生效日期!',
|
|
|
// 'insure_time' => '请选择保险时间!',
|
|
|
'remit' => '请选择投保人豁免!',
|
|
|
'recommend' => '请选择平台是否推荐!'
|
|
|
]);
|
|
|
if (!$validate->check($param)) {
|
|
|
$this->error($validate->getError());
|
...
|
...
|
@@ -159,6 +161,7 @@ class FormController extends WeChatBaseController |
|
|
'expire_time' => strtotime($param['take_time'])+$param['guarantee_deadline_time']*365*24*60*60,
|
|
|
'user_id' => $user_id,
|
|
|
'image' => !empty($images) ? json_encode($images) : null,
|
|
|
'recommend' => $param['recommend'],
|
|
|
];
|
|
|
//开启事务
|
|
|
Db::startTrans();
|
...
|
...
|
|