UserNeedValidate.php
2.0 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?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 api\portal\validate;
use think\Validate;
class UserNeedValidate extends Validate
{
protected $rule = [
'city' => 'require',
'quarters' => 'require',
// 'room' => 'require',
// 'floor' => 'require',
'house_type' => 'require',
'renovation' => 'require',
'area' => 'require',
'is_first' => 'require',
'loan' => 'require',
'quotation_time' => 'require',
'name' => 'require',
'tel' => 'require',
'code' => 'require',
'contract' => 'require',
];
protected $message = [
'city.require' => '地区不能为空!',
'quarters.require' => '小区不能为空!',
// 'room.length' => '房号不能为空!',
// 'floor.length' => '楼层不能为空!',
'house_type.require' => '户型不能为空!',
'renovation.require' => '装修不能为空!',
'area.require' => '建筑面积不能为空!',
'is_first.require' => '是否首套房不能为空!',
'loan.require' => '贷款不能为空!',
'quotation_time.require' => '报价时间不能为空!',
'name.require' => '联系人姓名不能为空!',
'tel.require' => '联系人电话不能为空!',
'code.require' => '验证码不能为空!',
'contract.require' => '请选择是否包干价!',
];
protected $scene = [
];
}