Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

View 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'],
];
}