作者 开飞机的舒克

系统配置优化

... ... @@ -50,7 +50,8 @@ class Config extends Backend
$siteList[$k]['list'] = [];
}
foreach ($this->model->all() as $k => $v) {
$config=$this->model->where('status','eq',1)->order('weigh','asc')->select();
foreach ($config as $k => $v) {
if (!isset($siteList[$v['group']])) {
continue;
}
... ...
... ... @@ -263,7 +263,7 @@ return [
//FastAdmin配置
'fastadmin' => [
//是否开启前台会员中心
'usercenter' => true,
'usercenter' => false,
//会员注册验证码类型email/mobile/wechat/text/false
'user_register_captcha' => 'text',
//登录验证码
... ...
... ... @@ -15,18 +15,14 @@ return array (
'fixedpage' => 'dashboard',
'categorytype' =>
array (
'default' => 'Default',
'page' => 'Page',
'article' => 'Article',
'default' => '默认',
'page' => '单页',
'article' => '文章',
'test' => 'Test',
),
'configgroup' =>
array (
'basic' => 'Basic',
'email' => 'Email',
'dictionary' => 'Dictionary',
'user' => 'User',
'example' => 'Example',
'basic' => '基础配置',
),
'mail_type' => '1',
'mail_smtp_host' => 'smtp.qq.com',
... ... @@ -37,9 +33,6 @@ return array (
'mail_from' => '10000@qq.com',
'attachmentcategory' =>
array (
'category1' => 'Category1',
'category2' => 'Category2',
'custom' => 'Custom',
),
'privacy_policy' => '<p><img src="http://rramxwmk1.hb-bkt.clouddn.com/uploads/20230310/e7ab2a28f4cb819fd6536ce7381583a9.png"/></p><p>用户:在手机、平板电脑、电脑等注册成为平台(以下简称“平台”或“平台方”)的使用者,通过平台发布、查看、接收图文/音频/视频信息或其他文件,或与其他用户进行延时/实时交流的用户(以下简称“用户”)。</p>',
);
... ...