添加:商户入驻申请取消短信验证码

This commit is contained in:
wuhui_zzw 2024-01-23 16:25:25 +08:00
parent 425c38e40d
commit a33b451285
2 changed files with 3 additions and 3 deletions

View File

@ -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('商户分类不存在');

View File

@ -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',
];