lvhao 2 months ago
parent
commit
a05b66942b
1 changed files with 5 additions and 4 deletions
  1. 5 4
      core/CoreApp/models/Model_api.php

+ 5 - 4
core/CoreApp/models/Model_api.php

@@ -10,7 +10,8 @@ function __construct(){
 
 	public function get_hq($name,$shopapi,$shop)
 	{
-		$jqtime = ($name=='SuperNova')?24*3600:2*3600;
+		//$jqtime = ($name=='SuperNova')?24*3600:2*3600;
+		$jqtime = ($name=='SuperNova')?24*3600*2:(2*3600 + 24*3600);
 		$fromTime = time()-36*3600-$jqtime;//strtotime('yesterday')-$jqtime;//昨日0点+1小时保险无漏单
 		$toTime = time();
 		if($name == 'SU')
@@ -52,7 +53,7 @@ function __construct(){
 		    $header[] = 'Content-Type: application/json';
             $header[] = 'Content-Length:'.strlen(json_encode($data));
         	$info = $this->su_curl($data,'http://api.supernovawig.com/v1/order/list',$header);
-        	$this->logic_ding->sendToDing("测试获取SU订单".$info);
+        	//$this->logic_ding->sendToDing("测试获取SU订单".$info);
 			$result = json_decode($info,true);
 			$thatDayOrder = array();
 			foreach ($result['data'] as $v)
@@ -118,7 +119,7 @@ function __construct(){
         	curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE); 
         	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
         	$res = curl_exec($ch);
-        	$this->logic_ding->sendToDing("测试获取自建站订单".$res);
+        	//$this->logic_ding->sendToDing("测试获取自建站订单".$res);
         	curl_close($ch);
         	$res = json_decode($res,true);
 			$thatDayOrder = array();
@@ -417,7 +418,7 @@ function __construct(){
 			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 			curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,1800000);
 			$res = curl_exec($ch);
-			$this->logic_ding->sendToDing("测试获取magento订单".$res);
+			//$this->logic_ding->sendToDing("测试获取magento订单".$res);
 			curl_close($ch);
    	    	if($res)
 			{