Browse Source

提交监听独立站同步的信息

lvhao 4 days ago
parent
commit
aff590a840
2 changed files with 3 additions and 11 deletions
  1. 1 9
      core/CoreApp/controllers/Api.php
  2. 2 2
      core/CoreApp/models/Model_api.php

+ 1 - 9
core/CoreApp/controllers/Api.php

@@ -950,17 +950,9 @@ class Api extends Start_Controller {
 				// $this->logic_ding->sendToDing("erp同步独立站的信息shop".json_encode($shop));
 				// $this->logic_ding->sendToDing("erp同步独立站的信息ex".json_encode($ex));
 				// $this->logic_ding->sendToDing("erp同步独立站的信息remark".json_encode($remark));
-				if(isset($xg['express'])&&($xg['express'] == 81)){
-					$this->logic_ding->sendToDing($xg['number']."erp同步独立站的信息ddh".json_encode($ddh));
-					$this->logic_ding->sendToDing($xg['number']."erp同步独立站的信息ydh".json_encode($ydh));
-					$this->logic_ding->sendToDing($xg['number']."erp同步独立站的信息xg".json_encode($xg));
-					$this->logic_ding->sendToDing($xg['number']."erp同步独立站的信息shop".json_encode($shop));
-					$this->logic_ding->sendToDing($xg['number']."erp同步独立站的信息ex".json_encode($ex));
-					$this->logic_ding->sendToDing($xg['number']."erp同步独立站的信息remark".json_encode($remark));
-				}
 
 			    @$gx = $this->api->get_gx($ddh,$ydh,$xg,$shop,$ex,$remark,$shopifyid);
-				$this->logic_ding->sendToDing($xg['number']."erp同步独立站的信息".json_encode($gx));
+				//$this->logic_ding->sendToDing($xg['number']."erp同步独立站的信息".json_encode($gx));
 				if(!isset($gx['res']))
 				{
 					continue;

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

@@ -916,7 +916,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);
@@ -931,7 +931,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)