Selaa lähdekoodia

dhl修改判断时间

lvhao 2 kuukautta sitten
vanhempi
commit
e3d6068bcd
1 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 6 3
      core/CoreApp/models/Model_dhl.php

+ 6 - 3
core/CoreApp/models/Model_dhl.php

@@ -329,11 +329,14 @@ function __construct(){
         libxml_disable_entity_loader(true);
         @$values = json_decode(json_encode(simplexml_load_string($data, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
 		$this->logic_ding->sendToDing("dhl发货单请求的报文回执".json_encode($values));
-		$end_time = time();
-		if( $end_time - $start_time  > 15){
-			$this->logic_ding->addJobs('outtime_order',['number'=>$data['number']]);
+		if(!empty($values['AirwayBillNumber'])){
+			$end_time = time();
+			if( $end_time - $start_time  > 60){
+				$this->logic_ding->addJobs('outtime_order',['number'=>$data['number']]);
+			}
 		}
 		
+		
 	/**
 		$ch = curl_init();
 		$url = 'http://z.wepolicy.cn/dhl.php';