Browse Source

菜单回退

shensong 5 years ago
parent
commit
363b26c424
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Console/Commands/freightCost.php

+ 2 - 2
app/Console/Commands/freightCost.php

@@ -99,7 +99,7 @@ class freightCost extends Command {
99 99
         );
100 100
 
101 101
         $res = $this->curlWithIpPorxy($method,$url,$params,$header);
102
-        if($res['words_result'][0]['words']){
102
+        if(isset($res['words_result'][0]['words'])){
103 103
             return $res['words_result'][0]['words'];
104 104
         } else {
105 105
             $this->getSession();
@@ -132,7 +132,7 @@ class freightCost extends Command {
132 132
         $url = 'http://erp.maijiayun.cn/dd/print/statistics/list/deliver.ht';
133 133
         $method = 'post';
134 134
 //        $startDate = '2019-10-15 00:00:00';
135
-        $startDate = date('Y-m-d 00:00:00',strtotime('-10 days'));
135
+        $startDate = date('Y-m-d 00:00:00',strtotime('-2 days'));
136 136
         $endDate = date('Y-m-d 23:59:59',time());
137 137
 
138 138
         $params = array(