2
0
visuddhinanda 2 жил өмнө
parent
commit
eae5ffcc26

+ 3 - 0
app/Console/Commands/UpgradeCompound.php

@@ -125,6 +125,9 @@ class UpgradeCompound extends Command
 
 		$bar = $this->output->createProgressBar($count[0]->count);
 		foreach ($words as $key => $word) {
+            if(\App\Tools\Tools::isStop()){
+                return 0;
+            }
             $bar->advance();
 			if($this->option('continue')){
                 //先看目前字典里有没有已经拆过的这个词