From 224e8247cd4d55151736719d06e06a5049388fcd Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Wed, 22 Dec 2021 18:55:24 +0800 Subject: [PATCH] settter --- app/validate/BusinessValidate.php | 2 +- app/validate/CouponRelease.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/validate/BusinessValidate.php b/app/validate/BusinessValidate.php index aa888c7..fa1fd93 100644 --- a/app/validate/BusinessValidate.php +++ b/app/validate/BusinessValidate.php @@ -8,7 +8,7 @@ class BusinessValidate extends Validate { protected $rule = [ 'type' => 'require|gt:0', - 'business_name|商家名称' => 'require|graph|max:150', + 'business_name|商家名称' => 'require|chsAlphaNum|max:150', 'business_subtitle|商家简称' => 'require|graph|max:150', 'business_license|营业执照' => 'require|max:250', 'contact_name|联系人' => 'require|max:20', diff --git a/app/validate/CouponRelease.php b/app/validate/CouponRelease.php index 0039b37..4f5135f 100644 --- a/app/validate/CouponRelease.php +++ b/app/validate/CouponRelease.php @@ -15,7 +15,7 @@ class CouponRelease extends Validate 'type|优惠券类型' => 'require', 'start_time|开始时间' => 'require|date', 'end_time|结束时间' => 'require|date|checkEndTime', - 'name|优惠券名称' => 'require|graph|length:3,32', + 'name|优惠券名称' => 'require|chsAlphaNum|length:3,32', 'money|金额' => 'require|>:0|<=:5000', 'deduction_money|扣除金额' => 'require|>=:0.1|<=:5000', 'image_url|预览图' => 'require',