Przeglądaj źródła

两个词上传一次

visuddhinanda 1 rok temu
rodzic
commit
4b2ce691f4
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {