|
@@ -329,11 +329,14 @@ function __construct(){
|
|
libxml_disable_entity_loader(true);
|
|
libxml_disable_entity_loader(true);
|
|
@$values = json_decode(json_encode(simplexml_load_string($data, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
|
|
@$values = json_decode(json_encode(simplexml_load_string($data, 'SimpleXMLElement', LIBXML_NOCDATA)), true);
|
|
$this->logic_ding->sendToDing("dhl发货单请求的报文回执".json_encode($values));
|
|
$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();
|
|
$ch = curl_init();
|
|
$url = 'http://z.wepolicy.cn/dhl.php';
|
|
$url = 'http://z.wepolicy.cn/dhl.php';
|