<?php

namespace app\admin\validate;

class ConfigGeneralValidate extends \think\Validate
{
	protected $rule = ["type" => "require|max:50", "charset" => "require", "port" => "require|number|max:50", "host" => "require|max:50", "username" => "require|email", "password" => "require|max:50", "fromname" => "require|max:50", "systememail" => "require|email", "app_id" => "require|number|max:100", "private_key" => "require|max:5000", "public_key" => "require|max:5000", "biz_code" => "require|max:50", "accesskeyid" => "require|max:100", "accesskeysecret" => "require|max:100", "code" => "require|max:50", "signature" => "require|max:50", "submail_appid" => "require|max:50", "submail_appkey" => "require|max:100", "company_name" => "max:100", "company_email" => "email|max:100", "domain" => "require|max:100", "logo_url" => "max:100", "system_url" => "require|max:100", "activity_limit" => "require|max:100", "num_records" => "require|max:10", "main_tenance_mode" => "require|in:1,0", "main_tenance_mode_url" => "max:100", "date_format" => "require", "client_date_format" => "require", "default_country" => "require", "language" => "require", "allow_user_language" => "in:0,1", "tel_cc_input" => "in:0,1", "nologin_send_ticket" => "in:0,1", "evaluate_ticket" => "in:0,1", "ticket_reply_order" => "in:asc,desc", "dl_incl_product" => "in:0,1", "affiliate_enabled" => "in:0,1", "affiliate_percent" => "float", "affiliate_bonusde_posit" => "float", "affiliate_cookie" => "float", "affiliate_withdraw" => "float", "affiliate_is_authentication" => "number", "affiliate_delay_commission" => "number", "affiliate_is_reorder" => "number", "affiliate_reorder" => "number", "affiliate_is_renew" => "number", "affiliate_renew" => "number", "required_pwstrength" => "in:none,alpha_num,catipal_alpha_num,alpha_num_special", "invalid_logins_banlength" => "number", "clients_profoptional" => "array", "clients_profuneditable" => "array", "show_cancel" => "in:0,1", "aff_report" => "in:0,1", "display_errors" => "in:0,1", "sql_error_reporting" => "in:0,1", "hooks_debug_mode" => "in:0,1", "in_circulation_create" => "in:0,1", "in_pdf" => "in:0,1", "in_save_user_info" => "in:0,1", "in_batch_pay" => "in:0,1", "in_select_payment" => "in:0,1", "in_unpaid_tick" => "in:0,1", "in_continuous_pay_num" => "in:0,1", "in_continuous_pay_num_type" => "in:YEAR,MONTH,DAY,NUMBER", "in_overdue_fine" => "in:0,1", "in_overdue_fine_min" => "integer", "addfunds_enabled" => "in:1,0", "addfunds_minimum" => "float|elt:addfunds_maximum", "addfunds_maximum" => "float|egt:addfunds_minimum", "addfunds_maximum_balance" => "float", "addfunds_require_order" => "in:1,0", "no_auto_apply_credit" => "in:1,0", "credit_on_downgrade" => "in:1,0"];
	protected $message = ["type.require" => "{%EMAIL_TYPE_REQUIRE}", "type.max" => "{%EMAIL_TYPE_MAX}", "charset.require" => "系统字符集不能为空", "charset.max" => "{%EMAIL_CHARSET_MAX}", "port.require" => "{%EMAIL_PORT_REQUIRE}", "port.number" => "{%EMAIL_PORT_NUMBER}", "port.max" => "{%EMAIL_PORT_MAX}", "host.require" => "{%EMAIL_HOST_REQUIRE}", "host.max" => "{%EMAIL_HOST_MAX}", "username.require" => "{%EMAIL_USERNAME_REQUIRE}", "username.email" => "{%EMAIL_USERNAME_EMAIL}", "password.require" => "{%EMAIL_PASSWORD_REQUIRE}", "password.max" => "{%EMAIL_PASSWORD_MAX}", "fromname.require" => "{%EMAIL_FROMNAME_REQUIRE}", "fromname.max" => "{%EMAIL_FROMNAME_MAX}", "systememail.require" => "{%EMAIL_SYSTEMEMAIL_REQUIRE}", "systememail.email" => "{%EMAIL_SYSTEMEMAIL_EMAIL}", "app_id.require" => "{%CERTIFY_ALIPAY_APP_ID_REQUIRE}", "app_id.number" => "{%CERTIFY_ALIPAY_APP_ID_NUMBER}", "app_id.max" => "{%CERTIFY_ALIPAY_APP_ID_MAX}", "private_key.require" => "{%CERTIFY_ALIPAY_PRIVATE_KEY_REQUIRE}", "private_key.max" => "{%CERTIFY_ALIPAY_PRIVATE_KEY_MAX}", "public_key.require" => "{%CERTIFY_ALIPAY_PUBLIC_KEY_REQUIRE}", "public_key.max" => "{%CERTIFY_ALIPAY_PUBLIC_KEY_MAX}", "biz_code.require" => "{%CERTIFY_ALIPAY_BIZ_CODE_REQUIRE}", "biz_code.max" => "{%CERTIFY_ALIPAY_BIZ_CODE_MAX}", "accesskeyid.require" => "{%MOBILE_ALIYUN_ACCESSKEYID_REQUIRE}", "accesskeyid.max" => "{%MOBILE_ALIYUN_ACCESSKEYID_MAX}", "accesskeysecret.require" => "{%MOBILE_ALIYUN_ACCESSKEYSECRET_REQUIRE}", "accesskeysecret.max" => "{%MOBILE_ALIYUN_ACCESSKEYSECRET_MAX}", "code.require" => "{%MOBILE_ALIYUN_CODE_REQUIRE}", "code.max" => "{%MOBILE_ALIYUN_CODE_MAX}", "signature.require" => "{%MOBILE_ALIYUN_SIGNATURE_REQUIRE}", "signature.max" => "{%MOBILE_ALIYUN_SIGNATURE_MAX}", "submail_appid.require" => "{%MOBILE_SUBMAIL_APPID_REQUIRE}", "submail_appid.max" => "{%MOBILE_SUBMAIL_APPID_MAX}", "submail_appkey.require" => "{%MOBILE_SUBMAIL_APPKEY_REQUIRE}", "submail_appkey.max" => "{%MOBILE_SUBMAIL_APPKEY_MAX}", "company_name.chsDash" => "公司名只能是汉字、字母、数字和下划线_及破折号-", "company_email.email" => "发件地址格式错误", "domain.require" => "网站域名不能为空", "system_url.require" => "系统链接不能为空", "activity_limit.require" => "系统活动日志限制不能为空", "num_records.require" => "默认每页显示记录不能为空", "date_format.require" => "后台日期格式不能为空", "client_date_format.require" => "用户日期格式不能为空", "default_country.require" => "默认国家不能为空", "language.require" => "默认系统语言不能为空", "addfunds_minimum.float" => "单笔最小金额格式错误", "addfunds_maximum.float" => "单笔最大金额格式错误", "addfunds_maximum_balance.float" => "最高余额格式错误", "addfunds_minimum.elt" => "最小金额小于等于最大金额"];
	protected $scene = ["email" => ["type", "charset", "port", "host", "username", "password", "fromname", "systememail"], "certifi" => ["app_id", "private_key", "public_key", "biz_code"], "aliyun_mobile" => ["accesskeyid", "accesskeysecret", "code", "signature"], "submail_mobile" => ["submail_appid", "submail_appkey"], "general" => ["company_name", "company_email", "domain", "logo_url", "system_url", "activity_limit", "num_records", "main_tenance_mode", "main_tenance_mode_url"], "local" => ["charset", "dateformat", "clientdateformat", "defaultcountry", "language", "allowuserlanguage", "tel_cc_input"], "support" => ["nologin_send_ticket", "evaluate_ticket", "ticket_reply_order", "dl_incl_product"], "affiliate" => ["affiliate_enabled", "affiliate_percent", "affiliate_bonusde_posit", "affiliate_payout", "affiliate_delay_commission", "affiliate_department"], "safe" => ["required_pwstrength", "invalid_logins_banlength"], "other" => ["clients_profoptional", "clients_profuneditable", "show_cancel", "aff_report", "display_errors", "sql_error_reporting", "hooks_debug_mode"], "invoice" => ["in_circulation_create", "in_pdf", "in_save_user_info", "in_batch_pay", "in_select_payment", "in_unpaid_tick", "in_continuous_pay_num", "in_continuous_pay_num_type", "in_overdue_fine", "in_overdue_fine_min"], "recharge" => ["addfunds_enabled", "addfunds_minimum", "addfunds_maximum", "addfunds_maximum_balance", "addfunds_require_order", "no_auto_apply_credit", "credit_on_downgrade"]];
	public $checkArr = ["type", "charset", "port", "host", "username", "password", "fromname", "systememail", "app_id", "private_key", "public_key", "biz_code", "accesskeyid", "accesskeysecret", "code", "signature", "submail_appid", "submail_appkey", "company_name", "company_email", "domain", "logo_url", "system_url", "activity_limit", "num_records", "main_tenance_mode", "main_tenance_mode_url", "charset", "dateformat", "clientdateformat", "defaultcountry", "language", "allowuserlanguage", "tel_cc_input", "nologin_send_ticket", "evaluate_ticket", "ticket_reply_order", "dl_incl_product", "affiliate_enabled", "affiliate_percent", "affiliate_bonusde_posit", "affiliate_payout", "affiliate_delay_commission", "affiliate_department", "required_pwstrength", "invalid_logins_banlength", "clients_profoptional", "clients_profuneditable", "show_cancel", "aff_report", "display_errors", "sql_error_reporting", "hooks_debug_mode", "in_circulation_create", "in_pdf", "in_save_user_info", "in_batch_pay", "in_select_payment", "in_unpaid_tick", "in_continuous_pay_num", "in_continuous_pay_num_type", "in_overdue_fine", "in_overdue_fine_min", "addfunds_enabled", "addfunds_minimum", "addfunds_maximum", "addfunds_maximum_balance", "addfunds_require_order", "no_auto_apply_credit", "credit_on_downgrade"];
	public $param_log_arr = ["sendmsgtimes" => "每天短信发送次数由", "sendmsgphone" => "每天短信发送手机个数由", "deletelogtime" => "删除日志天数由", "company_name" => "品牌名由", "company_email" => "网站邮箱由", "domain" => "网站域名由", "logo_url" => "logo地址由", "invoice_payto" => "付款条文由", "system_url" => "系统连接由", "num_records" => "默认每页显示条数由", "home_ip_check" => [1 => "前台登录是否检测ip由“关闭”改为“开启”，", 0 => "前台登录是否检测ip由“开启”改为“关闭”，"], "admin_ip_check" => [1 => "后台登录是否检测ip由“关闭”改为“开启”，", 0 => "后台登录是否检测ip由“开启”改为“关闭”，"], "main_tenance_mode" => [1 => "维护模式由“关闭”改为“开启”，", 0 => "维护模式由“开启”改为“关闭”，"], "main_tenance_mode_message" => "维护模式信息由", "main_tenance_mode_url" => "维护模式重定向到的链接由", "logo_url_home" => "前台logo地址由", "server_clause_url" => "服务条款地址由", "main_phone" => "联系方式由", "main_address" => "地址由", "record_no" => "备案由", "map" => "坐标由", "company_profile" => "公司简介由", "www_logo" => "官网LOGO由", "seo_keywords" => "关键词由", "seo_desc" => "描述由", "web_widgets" => "挂件由", "privacy_clause_url" => "隐私条款地址由", "per_page_limit" => "每页条数由", "header" => "头部由", "footer" => "底部由", "cancellation_time" => "注销时间由", "themes_templates" => "主题模板由", "login_header_footer" => [1 => "前台登录是否显示头部底部由“关闭”改为“开启”，", 0 => "前台登录是否显示头部底部由“开启”改为“关闭”，"], "login_header" => "前台登录头部由", "login_footer" => "前台登录底部由", "cart_product_description" => "应用说明由", "credit_limit" => [1 => "前台信用额由“关闭”改为“开启”，", 0 => "前台信用额由“开启”改为“关闭”，"], "allow_phone" => [1 => " - 允许手机登录", 0 => " - 不允许手机登录"], "allow_email" => [1 => " - 允许邮箱登录", 0 => " - 不允许邮箱登录"], "allow_id" => [1 => " - 允许id登录", 0 => " - 不允许id登录"], "wechat_login_appid" => " - 微信登录appid", "wechat_login_secret" => " - 微信登录secret", "allow_email_register_code" => " -邮箱注册是否发送验证码", "allow_register_phone" => " - 允许手机注册", "allow_register_email" => " - 允许邮箱注册", "allow_register_wechat" => " - 允许微信注册", "allow_login_phone" => " - 允许手机登录", "allow_login_email" => " - 允许邮箱登录", "allow_login_wechat" => " - 允许微信登录", "login_error_max_num" => " -登录错误次数", "is_captcha" => [1 => "验证码关闭改为开启", 0 => "验证码开启改为关闭"], "captcha_length" => "验证码长度由:“", "captcha_combination" => "验证码组合由:“", "allow_register_email_captcha" => [1 => "允许邮件注册显示验证码关闭改为开启", 0 => "允许邮件注册显示验证码开启改为关闭"], "allow_register_phone_captcha" => [1 => "允许手机注册显示验证码关闭改为开启", 0 => "允许手机注册显示验证码开启改为关闭"], "allow_login_phone_captcha" => [1 => "允许手机登录显示验证码关闭改为开启", 0 => "允许手机登录显示验证码开启改为关闭"], "allow_login_email_captcha" => [1 => "允许邮件登录显示验证码关闭改为开启", 0 => "允许邮件登录显示验证码开启改为关闭"], "allow_login_code_captcha" => [1 => "允许验证码登录显示验证码关闭改为开启", 0 => "允许验证码登录显示验证码开启改为关闭"], "allow_login_id_captcha" => [1 => "允许id登录显示验证码关闭改为开启", 0 => "允许id登录显示验证码开启改为关闭"], "allow_phone_forgetpwd_captcha" => [1 => "允许手机忘记密码显示验证码关闭改为开启", 0 => "允许手机忘记密码显示验证码开启改为关闭"], "allow_email_forgetpwd_captcha" => [1 => "允许邮件忘记密码显示验证码关闭改为开启", 0 => "允许邮件忘记密码显示验证码开启改为关闭"], "allow_resetpwd_captcha" => [1 => "允许重置密码显示验证码关闭改为开启", 0 => "允许重置密码显示验证码开启改为关闭"], "allow_phone_bind_captcha" => [1 => "允许手机绑定显示验证码关闭改为开启", 0 => "允许手机绑定显示验证码开启改为关闭"], "allow_email_bind_captcha" => [1 => "允许邮件绑定显示验证码关闭改为开启", 0 => "允许邮件绑定显示验证码开启改为关闭"], "allow_cancel_sms_captcha" => [1 => "允许取消登录短信提醒显示验证码关闭改为开启", 0 => "允许取消登录短信提醒显示验证码开启改为关闭"], "allow_cancel_email_captcha" => [1 => "允许取消登录邮件提醒显示验证码关闭改为开启", 0 => "允许取消登录邮件提醒显示验证码开启改为关闭"], "allow_login_admin_captcha" => [1 => "允许后台登录显示验证码关闭改为开启", 0 => "允许后台登录显示验证码开启改为关闭"], "allow_setpwd_captcha" => [1 => "允许设置密码显示验证码关闭改为开启", 0 => "允许设置密码显示验证码开启改为关闭"], "logo_url_bill" => "账单logo地址由"];
}