Prechádzať zdrojové kódy

add 译文进度 逐词译数据库分析

visuddhinanda 2 rokov pred
rodič
commit
8aa4e4bc25
1 zmenil súbory, kde vykonal 16 pridanie a 0 odobranie
  1. 16 0
      app/Console/Commands/UpgradeWeekly.php

+ 16 - 0
app/Console/Commands/UpgradeWeekly.php

@@ -37,6 +37,22 @@ class UpgradeWeekly extends Command
      */
      */
     public function handle()
     public function handle()
     {
     {
+        #译文进度
+        $this->call('upgrade:progress');
+        $time = time()-$currTime;
+        $message .= "progress:{$time}; ";
+        $currTime = time();
+
+        $this->call('upgrade:progress.chapter');
+        $time = time()-$currTime;
+        $message .= "progress.chapter:{$time}; ";
+        $currTime = time();
+
+        # 逐词译数据库分析
+        $this->call('upgrade:wbw.analyses');
+        $time = time()-$currTime;
+        $message .= "wbw.analyses:{$time}; ";
+
         # 段落更新图
         # 段落更新图
         $this->call('upgrade:chapter.dynamic');
         $this->call('upgrade:chapter.dynamic');
         $this->call('upgrade:chapter.dynamic.weekly');
         $this->call('upgrade:chapter.dynamic.weekly');