From a33b451285af23f67de971daf64753310e8b414d Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Tue, 23 Jan 2024 16:25:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=EF=BC=9A=E5=95=86=E6=88=B7?= =?UTF-8?q?=E5=85=A5=E9=A9=BB=E7=94=B3=E8=AF=B7=E5=8F=96=E6=B6=88=E7=9F=AD?= =?UTF-8?q?=E4=BF=A1=E9=AA=8C=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/merchant/MerchantIntention.php | 4 ++-- app/validate/api/MerchantIntentionValidate.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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', ];