瀏覽代碼

去掉word为null的数据

visuddhinanda 1 年之前
父節點
當前提交
8d838b4b96
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      api-v8/app/Console/Commands/UpgradeCompound.php

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

@@ -243,6 +243,9 @@ class UpgradeCompound extends Command
                 if (isset($part['type']) && $part['type'] === ".v.") {
                     continue;
                 }
+                if (empty($part['word'])) {
+                    continue;
+                }
                 $resultCount++;
                 $new = array();
                 $new['word'] = $part['word'];