|
|
@@ -13,6 +13,8 @@ class MasterWokerInfoValidate extends BaseValidate
|
|
|
'id_card' => 'require|checkIdCard',
|
|
|
'id_card_front_img' => 'require',
|
|
|
'id_card_opposite_img' => 'require',
|
|
|
+ 'mobile' => 'require|mobile',
|
|
|
+ 'address' => 'require'
|
|
|
];
|
|
|
|
|
|
protected $message = [
|
|
|
@@ -21,6 +23,9 @@ class MasterWokerInfoValidate extends BaseValidate
|
|
|
'id_card.checkIdCard' => '身份证格式有误',
|
|
|
'id_card_front_img.require' => '请上传身份证正面照',
|
|
|
'id_card_opposite_img.require' => '请上传身份证反面照',
|
|
|
+ 'mobile.require' => '请输入手机号',
|
|
|
+ 'mobile.mobile' => '手机号格式不正确',
|
|
|
+ 'address.mobile' => '请输入地址',
|
|
|
|
|
|
];
|
|
|
|
|
|
@@ -74,6 +79,6 @@ class MasterWokerInfoValidate extends BaseValidate
|
|
|
|
|
|
public function sceneChangeIdCard()
|
|
|
{
|
|
|
- return $this->only(['real_name', 'id_card','id_card_front_img','id_card_opposite_img']);
|
|
|
+ return $this->only(['real_name', 'id_card','id_card_front_img','id_card_opposite_img','mobile','address']);
|
|
|
}
|
|
|
}
|