wzq %!s(int64=5) %!d(string=hai) anos
pai
achega
1be724566f
Modificáronse 2 ficheiros con 6 adicións e 1 borrados
  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);
     }
 }