'require', 'admin_title' => 'require', 'smtp' => 'require', 'username' => 'require', 'password' => 'require', 'port' => 'require', 'email' => 'require', 'from' => 'require', 'appkey' => 'require', 'secretkey' => 'require', 'FreeSignName' => 'require', 'Token' => 'require', 'appID' => 'require', 'appsecret' => 'require', 'LOGIN_BACK_URL' => 'require', ]; protected $message = [ 'title.require' => '网站标题不能为空', 'admin_title.require' => '后台标题不能为空', 'smpt.require' => 'SMTP服务器地址不能为空', 'username.require' => '邮箱账户不能为空', 'password.require' => '密码不能为空', 'port.require' => '端口不能为空', 'email.require' => '发送者邮箱不能为空', 'from.require' => '要显示的发送者信息不能为空', 'appkey.require' => 'appkey不能为空', 'secretkey.require' => 'secretkey不能为空', 'FreeSignName.require' => '签名不能为空', 'Token.require' => 'Token不能为空', 'appID.require' => 'appID不能为空', 'appsecret.require' => 'appsecret不能为空', 'LOGIN_BACK_URL.require' => '微信授权登录回到地址不能为空', ]; protected $scene = [ 'web' => ['title', 'admin_title'], 'email' => ['smtp', 'username', 'password', 'port', 'email', 'from'], 'wechat' => ['Token', 'appID', 'appsecret','LOGIN_BACK_URL'], ]; }