Parcourir la Source

爬取卖家云订单脚本修改

shensong il y a 5 ans
Parent
commit
25e2afbd65
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      app/Console/Commands/freightCost.php

+ 1 - 0
app/Console/Commands/freightCost.php

@@ -177,6 +177,7 @@ class freightCost extends Command {
177 177
         if($this->page < $this->pages){
178 178
             //继续请求下一页数据
179 179
             $this->page++;
180
+            sleep(1);
180 181
             $this->getFreightCost();
181 182
         } else {
182 183
             die;