wzq 5 rokov pred
rodič
commit
1be724566f

+ 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);
     }
 }