NewValidate.php
1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\portal\validate;
use think\Validate;
class NewValidate extends Validate
{
protected $rule = [
'name' => 'require',
'city' => 'require',
'floor' => 'require',
'area' => 'require',
'sure_money' => 'require',
'save' => 'require',
'agency' => 'require',
];
protected $message = [
'name.require' => '内容不为空!',
'city.require' => '城市不为空!',
'floor.require' => '户型不为空!',
'area.require' => '建筑面积不为空!',
'sure_money.require' => '成交价不为空!',
'save.require' => '节约价格不为空!',
'agency.require' => '成交中介不为空!',
];
protected $scene = [
];
}