Browse Source

添加郵件隊列的指令説明

兩足大貓貓 4 years ago
parent
commit
7d251bec8b
2 changed files with 4 additions and 15 deletions
  1. 3 2
      src/Command/Job.php
  2. 1 13
      src/Command/Tool.php

+ 3 - 2
src/Command/Job.php

@@ -29,6 +29,7 @@ class Job extends Command
 {
     public $description = ''
         . '├─=: php xcat Job [选项]' . PHP_EOL
+        . '│ ├─ SendMail                - 处理邮件队列' . PHP_EOL
         . '│ ├─ DailyJob                - 每日任务' . PHP_EOL
         . '│ ├─ CheckJob                - 检查任务,每分钟' . PHP_EOL
         . '│ ├─ UserJob                 - 用户账户相关任务,每小时' . PHP_EOL;
@@ -87,7 +88,7 @@ class Job extends Command
         ini_set('memory_limit', '-1');
 
         // ------- 重置节点流量,排除无需重置流量的节点类型
-        Node::whereNotIn('id', [1, 2, 5, 9, 999])->where('bandwidthlimit_resetday', date('d'))->update(['node_bandwidth' => 0]);
+        Node::where('bandwidthlimit_resetday', date('d'))->update(['node_bandwidth' => 0]);
         // ------- 重置节点流量
 
         // ------- 清理各表记录
@@ -300,7 +301,7 @@ class Job extends Command
         }
 
         //更新节点 IP,每分钟
-        $nodes = Node::whereNotIn('id', [2, 5, 9, 999])->get();
+        $nodes = Node::get();
         foreach ($nodes as $node) {
             /** @var Node $node */
             $server = $node->get_out_address();

+ 1 - 13
src/Command/Tool.php

@@ -10,8 +10,7 @@ class Tool extends Command
         . '├─=: php xcat Tool [选项]' . PHP_EOL
         . '│ ├─ initQQWry               - 下载 IP 解析库' . PHP_EOL
         . '│ ├─ setTelegram             - 设置 Telegram 机器人' . PHP_EOL
-        . '│ ├─ detectConfigs           - 检查数据库内新增的配置' . PHP_EOL
-        . '│ ├─ initdocuments           - 下载用户使用文档至服务器' . PHP_EOL;
+        . '│ ├─ detectConfigs           - 检查数据库内新增的配置' . PHP_EOL;
 
     public function boot()
     {
@@ -55,17 +54,6 @@ class Tool extends Command
         }
     }
 
-    /**
-     * 下载使用文档
-     *
-     * @return void
-     */
-    public function initdocuments()
-    {
-        system('git clone https://github.com/GeekQuerxy/PANEL_DOC.git ' . BASE_PATH . "/public/docs/", $ret);
-        echo $ret;
-    }
-
     /**
      * 下载 IP 库
      *