Selaa lähdekoodia

去掉word为null的数据

visuddhinanda 1 vuosi sitten
vanhempi
sitoutus
8d838b4b96
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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.") {
                 if (isset($part['type']) && $part['type'] === ".v.") {
                     continue;
                     continue;
                 }
                 }
+                if (empty($part['word'])) {
+                    continue;
+                }
                 $resultCount++;
                 $resultCount++;
                 $new = array();
                 $new = array();
                 $new['word'] = $part['word'];
                 $new['word'] = $part['word'];