Ver Código Fonte

菜单回退

shensong 5 anos atrás
pai
commit
363b26c424
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      app/Console/Commands/freightCost.php

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

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