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