企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## templete.php 模板配置配置 ~~~ /*自定义模板参数*/ 'tpl_replace_string' => [ '__STATIC_ADMIN__'=>'/static/admin/', '__LIB__' => '/static/lib/', ], ~~~ ## auth.php 权限配置文件 ~~~ return[ // auth配置 'auth' => [ 'auth_on' => 1, // 权限开关 'auth_type' => 1, // 认证方式,1为实时认证;2为登录认证。 'auth_group' => 'auth_group', // 用户组数据不带前缀表名 'auth_group_access' => 'auth_group_access', // 用户-用户组关系不带前缀表名 'auth_rule' => 'auth_rule', // 权限规则不带前缀表名 'auth_user' => 'admin', // 用户信息不带前缀表名 ], //不验证的页面(url) 'not_check_priv'=>[ 'admin/Index/index', 'admin/Index/show_menu', 'admin/Index/public_welcome', 'admin/Index/public_clear', 'admin/Index/public_checkicon', ] ]; ~~~ ## captcha.php验证码配置文件 ~~~ return [ 'codeSet' => '2345678abcdefhjkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY', //字符码集合 'useCurve' => false, // 是否画混淆曲线 'length' => 5, // 验证码位数 'expire' => 1800, //验证码过期时间(s) 'useZh' => false, // 使用中文验证码 'useImgBg' => false, // 使用背景图片 'fontSize' => 25, //字体大小 'bg' => [243, 251, 254], 'math' => true, ]; ~~~ ## huiadmin.php 自定义配置 ~~~ return[ //是否开启后台登录验证码 'login_captcha' => false, //允许登录失败几次 'login_failure_times' => 5, //登录失败超过N次则后,多久允许重写登录(分钟) 'login_failure_min' => 10, //登录失败超过N次是否允许重新登录 'login_failure_retry' => true, ]; ~~~