rabin 2 年之前
父节点
当前提交
bd91ebfc78
共有 2 个文件被更改,包括 12 次插入1 次删除
  1. 1 1
      service/agent/lib/Core.php
  2. 11 0
      service/setting/database/base.php

+ 1 - 1
service/agent/lib/Core.php

@@ -15,7 +15,7 @@ class Core
     {
         $config = Dever::db('setting/base')->one();
         if($config['type'] == 2){
-            Dever::alert('系统正在维护中', -4);
+            Dever::alert($config['type_desc'], -4);
         }
         $this->uid = Dever::load('passport/user')->check(false);
         if ($this->uid <= 0) {

+ 11 - 0
service/setting/database/base.php

@@ -133,6 +133,17 @@ return array
             'update'    => 'radio',
             'control'   => 'type',
         ),
+
+        'type_desc'		=> array
+		(
+			'type' 		=> 'varchar-2000',
+			'name' 		=> '系统维护描述',
+			'default' 	=> '',
+			'desc' 		=> '系统维护描述',
+			'match' 	=> 'is_string',
+			'update'	=> 'textarea',
+		),
+
 		// 'market_desc'      => array
   //       (
   //           'type'      => 'text-255',