CooperationValidate.php 1.0 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 CooperationValidate extends Validate
{
    protected $rule = [
        'title' => 'require',
        'pic' => 'require',
    ];
    protected $message = [
        'title.require' => '企业名称不为空!',
        'pic.require' => '图片不能为空!',

    ];

    protected $scene = [
        'add'  => ['title','pic'],
        'edit'  => ['title','pic'],
    ];

}