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