|
@@ -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(
|