Browse Source

不处理数字

visuddhinanda 1 year ago
parent
commit
f740ae0257
1 changed files with 4 additions and 0 deletions
  1. 4 0
      api-v8/app/Console/Commands/UpgradeCompound.php

+ 4 - 0
api-v8/app/Console/Commands/UpgradeCompound.php

@@ -174,6 +174,10 @@ class UpgradeCompound extends Command
             if (\App\Tools\Tools::isStop()) {
                 return 0;
             }
+            if (preg_match('/\d/', $word->real)) {
+                $this->info('数字不处理');
+                continue;
+            }
             //判断数据库里面是否有
             /*
             $exists = in_array($word->real, $dbHas)