|
@@ -392,6 +392,7 @@ function __construct(){
|
|
|
$this->logic_ding->sendToDing("usps获取快递面单的请求数据".$list);
|
|
|
//$this->logic_ding->sendToDing("usps获取快递面单的pay_token".$payment_token);
|
|
|
//$this->logic_ding->sendToDing("usps获取快递面单的token".$token);
|
|
|
+ $start_time = time();
|
|
|
$ch = curl_init();
|
|
|
curl_setopt($ch,CURLOPT_URL,$url);
|
|
|
curl_setopt($ch, CURLOPT_POST, 1);
|
|
@@ -405,6 +406,10 @@ function __construct(){
|
|
|
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,1800000);
|
|
|
$res = curl_exec($ch);
|
|
|
$this->logic_ding->sendToDing("usps获取快递面单的返回信息".$res);
|
|
|
+ $end_time = time();
|
|
|
+ if( $end_time - $start_time > 30){
|
|
|
+ $this->logic_ding->addJobs('outtime_order',['number'=>$data['number']]);
|
|
|
+ }
|
|
|
curl_close($ch);
|
|
|
$res = json_decode($res, true);
|
|
|
return $res;
|