瀏覽代碼

修改系统模块注释

Anyon 5 年之前
父節點
當前提交
30bba580b8

+ 1 - 1
app/admin/controller/Auth.php

@@ -113,7 +113,7 @@ class Auth extends Controller
             $this->_form($this->table, 'apply');
         }
     }
-    
+
     /**
      * 删除系统权限
      * @auth true

+ 6 - 6
app/admin/controller/Config.php

@@ -31,7 +31,7 @@ class Config extends Controller
     protected $table = 'SystemConfig';
 
     /**
-     * 绑定数据表
+     * 系统参数配置
      * @auth true
      * @menu true
      */
@@ -42,7 +42,7 @@ class Config extends Controller
     }
 
     /**
-     * 修改系统参数配置
+     * 修改系统参数
      * @auth true
      * @throws \think\db\exception\DataNotFoundException
      * @throws \think\db\exception\DbException
@@ -52,17 +52,17 @@ class Config extends Controller
     {
         $this->_applyFormToken();
         if ($this->request->isGet()) {
-            $this->title = '修改系统参数配置';
+            $this->title = '修改系统参数';
             $this->fetch();
         }
         foreach ($this->request->post() as $key => $value) {
             sysconf($key, $value);
         }
-        $this->success('系统参数配置成功!');
+        $this->success('修改系统参数成功!');
     }
 
     /**
-     * 修改文件存储引擎
+     * 修改文件存储
      * @auth true
      * @throws \think\db\exception\DataNotFoundException
      * @throws \think\db\exception\DbException
@@ -83,7 +83,7 @@ class Config extends Controller
             $post['storage']['allow_exts'] = join(',', $exts);
         }
         foreach ($post as $key => $value) sysconf($key, $value);
-        $this->success('文件存储配置成功!');
+        $this->success('修改文件存储成功!');
     }
 
 }

+ 1 - 1
app/admin/controller/Menu.php

@@ -116,7 +116,7 @@ class Menu extends Controller
     }
 
     /**
-     * 修改系统菜单状态
+     * 修改菜单状态
      * @auth true
      * @throws \think\db\exception\DbException
      */

+ 21 - 13
app/admin/controller/Queue.php

@@ -57,6 +57,16 @@ class Queue extends Controller
     }
 
     /**
+     * 删除系统任务
+     * @auth true
+     * @throws \think\db\exception\DbException
+     */
+    public function remove()
+    {
+        $this->_delete($this->table);
+    }
+
+    /**
      * 重启系统任务
      * @auth true
      * @throws \think\db\exception\DbException
@@ -67,7 +77,16 @@ class Queue extends Controller
     }
 
     /**
-     * (WIN)创建任务监听进程
+     * 重启任务结果处理
+     * @param boolean $state
+     */
+    protected function _redo_save_result($state)
+    {
+        if ($state) $this->success('重启任务成功!');
+    }
+
+    /**
+     * WIN创建监听进程
      * @auth true
      */
     public function start()
@@ -82,7 +101,7 @@ class Queue extends Controller
     }
 
     /**
-     * (WIN)停止任务监听进程
+     * WIN停止监听进程
      * @auth true
      */
     public function stop()
@@ -96,15 +115,4 @@ class Queue extends Controller
         }
     }
 
-
-    /**
-     * 删除系统任务
-     * @auth true
-     * @throws \think\db\exception\DbException
-     */
-    public function remove()
-    {
-        $this->_delete($this->table);
-    }
-
 }

+ 1 - 1
app/admin/controller/User.php

@@ -126,7 +126,7 @@ class User extends Controller
     }
 
     /**
-     * 修改系统用户状态
+     * 修改用户状态
      * @auth true
      * @throws \think\db\exception\DbException
      */