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',