wzq 5 anni fa
parent
commit
1be724566f
2 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 1 1
      app/Console/Commands/TopicUseCount.php
  2. 5 0
      app/Console/Kernel.php

+ 1 - 1
app/Console/Commands/TopicUseCount.php

@@ -14,7 +14,7 @@ class TopicUseCount extends Command
      *
      * @var string
      */
-    protected $signature = 'post:create_bean';
+    protected $signature = 'post:topic_use_count';
 
     /**
      * The console command description.

+ 5 - 0
app/Console/Kernel.php

@@ -75,5 +75,10 @@ class Kernel extends ConsoleKernel
         $schedule->command('post:collect_bean')
             ->everyFiveMinutes()
             ->withoutOverlapping()->appendOutputTo($path);
+
+        //更新话题使用数
+        $schedule->command('post:topic_use_count')
+            ->everyFiveMinutes()
+            ->withoutOverlapping()->appendOutputTo($path);
     }
 }