Browse Source

正鑫云图添加超过30s记录订单超时

lvhao 3 months ago
parent
commit
518e31124e
1 changed files with 5 additions and 1 deletions
  1. 5 1
      core/CoreApp/models/Model_zxyuntu.php

+ 5 - 1
core/CoreApp/models/Model_zxyuntu.php

@@ -95,7 +95,7 @@ function __construct(){
 		)))
 		)
 		);
-
+		$start_time = time();
 		$count = json_encode($count,true);
 
 		$ch = curl_init();
@@ -134,6 +134,10 @@ function __construct(){
 			}
 		}
 		$this->logic_ding->sendToDing("正鑫快递erp返回信息【".json_encode($g)."】");
+		$end_time = time();
+		if( $end_time - $start_time  > 30){
+			$this->logic_ding->addJobs('outtime_order',['number'=>$data['number']]);
+		}
 		return $g;
 	}