settter
parent
4daeae6f34
commit
224e8247cd
|
@ -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',
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue