Просмотр исходного кода

爬取卖家云订单脚本修改

shensong лет назад: 5
Родитель
Сommit
25e2afbd65
1 измененных файлов с 1 добавлено и 0 удалено
  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;