瀏覽代碼

基础配置

lizhen_gitee 2 月之前
父節點
當前提交
715c8be29c
共有 3 個文件被更改,包括 12 次插入5 次删除
  1. 2 5
      application/common/model/Config.php
  2. 9 0
      application/config.php
  3. 1 0
      application/extra/site.php

+ 2 - 5
application/common/model/Config.php

@@ -104,11 +104,8 @@ class Config extends Model
     }
     }
     public static function newgetGroupList()
     public static function newgetGroupList()
     {
     {
-        $groupList =    array (
-//            'basic' => '基础配置',
-            'website' => '金钱变量',
-            'withdraw' => '提现配置',
-        );
+        $groupList = config('generalconfig');
+
         foreach ($groupList as $k => &$v) {
         foreach ($groupList as $k => &$v) {
             $v = __($v);
             $v = __($v);
         }
         }

+ 9 - 0
application/config.php

@@ -385,4 +385,13 @@ return [
     'public_key' => '',
     'public_key' => '',
     'private_key' => '',
     'private_key' => '',
     'ali_public_key' => '',
     'ali_public_key' => '',
+
+    //基础配置
+    'generalconfig' => [
+            'app' => 'APP配置',
+            'website' => '金钱变量',
+            'withdraw' => '提现配置',
+            'showrules' => '显示规则配置',
+            'active' => '活动设置',
+        ],
 ];
 ];

+ 1 - 0
application/extra/site.php

@@ -30,6 +30,7 @@ return array (
     'withdraw' => '提现配置',
     'withdraw' => '提现配置',
     'showrules' => '显示规则配置',
     'showrules' => '显示规则配置',
     'active' => '活动设置',
     'active' => '活动设置',
+    'app' => 'app配置',
   ),
   ),
   'mail_type' => '1',
   'mail_type' => '1',
   'mail_smtp_host' => 'smtp.163.com',
   'mail_smtp_host' => 'smtp.163.com',