You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
21
hyhproject/admin/validate/Adgoods.php
Executable file
21
hyhproject/admin/validate/Adgoods.php
Executable file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
namespace wstmart\admin\validate;
|
||||
use think\Validate;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 广告验证器
|
||||
*/
|
||||
class Adgoods extends Validate{
|
||||
protected $rule = [
|
||||
['adId' ,'require|max:30','请输入广告名称|广告名称不能超过10个字符'],
|
||||
['adGoodsImg' ,'require','请上传广告图片'],
|
||||
['goodsId' ,'require','请上传广告商品'],
|
||||
['startDate' , 'require', '请输入广告开始时间' ],
|
||||
['endDate' , 'require', '请输入广告结束时间'],
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['adName','adURL','startDate','endDate'],
|
||||
'edit' => ['adName','adURL','startDate','endDate'],
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user