Merge branch 'develop'

This commit is contained in:
monanxiao 2023-03-18 09:28:04 +08:00
commit 69f8fb1cdd
2 changed files with 15 additions and 2 deletions

View File

@ -106,7 +106,20 @@ class MerchantIntention extends BaseController
protected function checkParams()
{
$data = $this->request->params(['phone', 'mer_name', 'name', 'code', 'images', 'merchant_category_id', 'mer_type_id','area_id','street_id','village_id','is_nmsc']);
$data = $this->request->params([
'phone',
'mer_name',
'name',
'code',
'images',
'merchant_category_id',
'mer_type_id',
'area_id',
'street_id',
'village_id',
'is_nmsc'
]);
app()->make(MerchantIntentionValidate::class)->check($data);
$check = app()->make(SmsService::class)->checkSmsCode($data['phone'], $data['code'], 'intention');
$data['mer_type_id'] = (int)$data['mer_type_id'];

View File

@ -24,7 +24,7 @@ class MerchantIntentionValidate extends Validate
'name|姓名' => 'require',
'mer_name|姓名' => 'require|max:32',
'merchant_category_id|商户分类' => 'require',
'mer_type_id|店铺类型' => 'integer',
'mer_type_id|店铺类型' => 'require|integer',
'code|验证码' => 'require',
'images|资质' => 'array',
];