visuddhinanda преди 1 година
родител
ревизия
4b2ce691f4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      api-v8/app/Console/Commands/UpgradeCompound.php

+ 1 - 1
api-v8/app/Console/Commands/UpgradeCompound.php

@@ -286,7 +286,7 @@ class UpgradeCompound extends Command
                 }
             }
 
-            if (count($wordIndex) % 100 === 0) {
+            if (count($wordIndex) % 2 === 0) {
                 //每100个单词上传一次
                 $ok = $this->upload($wordIndex, $result, $this->option('api'));
                 if (!$ok) {