소스 검색

去掉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'];