Pārlūkot izejas kodu

爬取卖家云订单脚本修改

shensong 5 gadi atpakaļ
vecāks
revīzija
a9659799d3
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      app/Console/Commands/CustomerOrder.php

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

@@ -33,6 +33,7 @@ class CustomerOrder extends Command {
33 33
         $list = json_decode(json_encode($list),true);
34 34
         if(count($list) > 0){
35 35
             $this->page++;
36
+            sleep(1);
36 37
             $this->updateOrInsert($list);
37 38
             $this->getCustomerList();
38 39
         } else {