NewValidate.php 1.3 KB
<?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 = [

    ];

}