添加:商户入驻申请取消短信验证码
This commit is contained in:
parent
425c38e40d
commit
a33b451285
|
|
@ -97,9 +97,9 @@ class MerchantIntention extends BaseController
|
|||
// 参数获取
|
||||
$data = $this->request->params(['phone','mer_name','name','code','images','merchant_category_id','mer_type_id','manage_uid']);
|
||||
app()->make(MerchantIntentionValidate::class)->check($data);
|
||||
$check = app()->make(SmsService::class)->checkSmsCode($data['phone'],$data['code'],'intention');
|
||||
// $check = app()->make(SmsService::class)->checkSmsCode($data['phone'],$data['code'],'intention');
|
||||
$data['mer_type_id'] = (int)$data['mer_type_id'];
|
||||
if(!$check) throw new ValidateException('验证码不正确');
|
||||
// if(!$check) throw new ValidateException('验证码不正确');
|
||||
// 判断:商户分类是否存在
|
||||
$cateIsHas = app()->make(MerchantCategoryRepository::class)->get($data['merchant_category_id']);
|
||||
if(!$cateIsHas) throw new ValidateException('商户分类不存在');
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ class MerchantIntentionValidate extends Validate
|
|||
'mer_name|姓名' => 'require|max:32',
|
||||
'merchant_category_id|商户分类' => 'require',
|
||||
'mer_type_id|店铺类型' => 'integer',
|
||||
'code|验证码' => 'require',
|
||||
// 'code|验证码' => 'require',
|
||||
'images|资质' => 'array',
|
||||
'manage_uid|管理员' => 'require',
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in New Issue