diff --git a/app/controller/api/store/merchant/MerchantIntention.php b/app/controller/api/store/merchant/MerchantIntention.php index 61621a7..ea7ef43 100644 --- a/app/controller/api/store/merchant/MerchantIntention.php +++ b/app/controller/api/store/merchant/MerchantIntention.php @@ -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('商户分类不存在'); diff --git a/app/validate/api/MerchantIntentionValidate.php b/app/validate/api/MerchantIntentionValidate.php index 5003111..a99d434 100644 --- a/app/validate/api/MerchantIntentionValidate.php +++ b/app/validate/api/MerchantIntentionValidate.php @@ -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', ];