MemberValidate.php
1.1 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: Powerless < wzxaini9@gmail.com>
// +----------------------------------------------------------------------
namespace app\user\validate;
use think\Validate;
class MemberValidate extends Validate
{
protected $rule = [
'name' => 'require',
'tel' => 'require',
'link' => 'require',
];
protected $message = [
'name.require' => '真实姓名不能为空!',
'tel.require' => '手机号不能为空!',
'link.require' => '短网址不能为空!',
];
protected $scene = [
'change'=>['name','tel','link']
];
}