Browse Source

提交数据

lvhao 1 month ago
parent
commit
4d8830c0af
1 changed files with 8 additions and 8 deletions
  1. 8 8
      core/CoreApp/models/Model_api.php

+ 8 - 8
core/CoreApp/models/Model_api.php

@@ -14,7 +14,7 @@ function __construct(){
 		//$jqtime = ($name=='SuperNova')?24*3600*2:(2*3600 + 24*3600);
 		$fromTime = time()-36*3600-$jqtime;//strtotime('yesterday')-$jqtime;//昨日0点+1小时保险无漏单
 		$toTime = time();
-		$this->logic_ding->sendToDing("独立站获取订单的店铺执行【".$name."】".json_encode($shop));
+		//$this->logic_ding->sendToDing("独立站获取订单的店铺执行【".$name."】".json_encode($shop));
 		if($name == 'SU' || $name== 'SN')
 		{
 			$path = $_SERVER["DOCUMENT_ROOT"] . '/data/token/supernovawig.txt';
@@ -54,7 +54,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)
@@ -130,8 +130,8 @@ function __construct(){
 				curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 				curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,1800000);
 				$res = curl_exec($ch);
-				$this->logic_ding->sendToDing("独立站获取订单的店铺执行请求参数【".$name."】".json_encode($post));
-				$this->logic_ding->sendToDing("独立站获取订单的店铺执行获取信息".$res);
+				//$this->logic_ding->sendToDing("独立站获取订单的店铺执行请求参数【".$name."】".json_encode($post));
+				//$this->logic_ding->sendToDing("独立站获取订单的店铺执行获取信息".$res);
 				
 				curl_close($ch);
 				$res = json_decode($res,true);
@@ -484,7 +484,7 @@ function __construct(){
 		}
 		else
 		{
-			$this->logic_ding->sendToDing("独立站获取订单的店铺执行mengnnto【".$name."】");
+			//$this->logic_ding->sendToDing("独立站获取订单的店铺执行mengnnto【".$name."】");
 			$post = array();
 			$post['synchronization'] = 1;
 			$post['name'] = $name;
@@ -591,7 +591,7 @@ function __construct(){
 		curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,1800000);
 		$res = curl_exec($ch);
 		curl_close($ch);
-		$this->logic_ding->sendToDing("独立站获取订单的店铺执行shopfiy paypal【".$shopifyid."】".$res."}{".json_encode($post));
+		//$this->logic_ding->sendToDing("独立站获取订单的店铺执行shopfiy paypal【".$shopifyid."】".$res."}{".json_encode($post));
 		// $shopifyid = $shopifyid;
 		// $url = 'https://'.$shop['shopname'].'.myshopify.com/admin/api/2022-10/orders/'.$shopifyid.'/transactions.json';
         // 	$headerA[] = "X-Shopify-Access-Token: ".$shop['token'];
@@ -827,7 +827,7 @@ function __construct(){
 		    $post['shop'] = $shop;
 		    $post['ex'] = $ex;
 		    $post['msg'] = isset($msg)?$msg:2;
-			$this->logic_ding->sendToDing("erp同步独立站的信息tijiao1".json_encode($post,JSON_UNESCAPED_UNICODE));
+			//$this->logic_ding->sendToDing("erp同步独立站的信息tijiao1".json_encode($post,JSON_UNESCAPED_UNICODE));
 		    $ch = curl_init();
 		    $url = 'http://edm.alipearl.net/soapapi.php';
 		    curl_setopt($ch,CURLOPT_URL,$url);
@@ -842,7 +842,7 @@ function __construct(){
 		    $res = curl_exec($ch);
 		    curl_close($ch);
 		    $res = json_decode($res,true);
-			$this->logic_ding->sendToDing("erp同步独立站的信息1_".$ydh."_".json_encode($res,JSON_UNESCAPED_UNICODE));
+			//$this->logic_ding->sendToDing("erp同步独立站的信息1_".$ydh."_".json_encode($res,JSON_UNESCAPED_UNICODE));
 			if($res)
 	    	{
 				if($res == 1)