浏览代码

删除一部分不用检测的日志记录

lvhao 4 天之前
父节点
当前提交
e0e49f9b5d

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

@@ -1758,7 +1758,7 @@ class Api extends Start_Controller {
 		@$this->allocation->insert(array('title'=>date('Y-m-d',time()).'-'.$shopid));
 		@$this->allocation->insert(array('title'=>date('Y-m-d',time()).'-'.$shopid));
 		$where = "shop = '".$where['shop']."' and waybill != '' and library = '2' and expressstate <= '".$where['expressstate']."' and librarytime > '".(time()-22*24*3600)."' and wlcontent not like '%".$where['wlcontent']."%'";//正式发送的时候开启这个"'
 		$where = "shop = '".$where['shop']."' and waybill != '' and library = '2' and expressstate <= '".$where['expressstate']."' and librarytime > '".(time()-22*24*3600)."' and wlcontent not like '%".$where['wlcontent']."%'";//正式发送的时候开启这个"'
 		//$where = "shop = '".$where['shop']."' and waybill != '' and library = '2' and express = '3' and librarytime > '1636300800' and wlcontent not like '%".$where['wlcontent']."%'";//正式发送的时候开启这个"'
 		//$where = "shop = '".$where['shop']."' and waybill != '' and library = '2' and express = '3' and librarytime > '1636300800' and wlcontent not like '%".$where['wlcontent']."%'";//正式发送的时候开启这个"'
-		$this->logic_ding->sendToDing("wlfs执行信息".json_encode($data,JSON_UNESCAPED_UNICODE));
+		//$this->logic_ding->sendToDing("wlfs执行信息".json_encode($data,JSON_UNESCAPED_UNICODE));
 		$data = $this->fullorder->find_all($where);
 		$data = $this->fullorder->find_all($where);
 		$csck = array();
 		$csck = array();
 			foreach ($data as $k=>$v)
 			foreach ($data as $k=>$v)

+ 4 - 4
core/CoreApp/controllers/Apismt.php

@@ -233,7 +233,7 @@ class Apismt extends Start_Controller {
 				{
 				{
 					$orderexpress = $this->express->read($dataorder['express']);
 					$orderexpress = $this->express->read($dataorder['express']);
 					$data = $this->apismt->get_order($v['orderinfo'],$shop['code']);
 					$data = $this->apismt->get_order($v['orderinfo'],$shop['code']);
-					$this->logic_ding->sendToDing("smt的订单查询详情".json_encode($data));
+					//$this->logic_ding->sendToDing("smt的订单查询详情".json_encode($data));
 					$overtime = $zt[$v['state']] == 207?$data['overtime']:$dataorder['overtime'];
 					$overtime = $zt[$v['state']] == 207?$data['overtime']:$dataorder['overtime'];
 					if($data['express'])
 					if($data['express'])
 					{
 					{
@@ -294,7 +294,7 @@ class Apismt extends Start_Controller {
 					
 					
 					**/
 					**/
 
 
-					$this->logic_ding->sendToDing("SMT运单同步【".$v['orderinfo']."】"."||".$dlz);
+					//$this->logic_ding->sendToDing("SMT运单同步【".$v['orderinfo']."】"."||".$dlz);
 					$this->fullordersmt->save(array('state'=>$zt[$v['state']],'express'=>$express,'waybill'=>$waybill,'dlz'=>$dlz,'expressstate'=>$expressstate,'overtime'=>$overtime),$dataorder['id']);
 					$this->fullordersmt->save(array('state'=>$zt[$v['state']],'express'=>$express,'waybill'=>$waybill,'dlz'=>$dlz,'expressstate'=>$expressstate,'overtime'=>$overtime),$dataorder['id']);
 				}
 				}
 			}
 			}
@@ -763,7 +763,7 @@ class Apismt extends Start_Controller {
 				foreach ($t as $vv)
 				foreach ($t as $vv)
 		        {
 		        {
 					$d = $this->apismt->get_out($v['waybill'],'all',$vv['orderinfo'],$express['aecode'],$shop['code']);
 					$d = $this->apismt->get_out($v['waybill'],'all',$vv['orderinfo'],$express['aecode'],$shop['code']);
-					$this->logic_ding->sendToDing("SMT运单同步【".$vv['orderinfo']."】"."||执行信息一||".json_encode($d));
+					//$this->logic_ding->sendToDing("SMT运单同步【".$vv['orderinfo']."】"."||执行信息一||".json_encode($d));
 					if(isset($d['result_success']) && $d['result_success'] == "true")
 					if(isset($d['result_success']) && $d['result_success'] == "true")
 					{
 					{
 						$this->fullordersmt->save(array('dlz'=>1,'exstate'=>1,'state'=>209),$vv['id']);
 						$this->fullordersmt->save(array('dlz'=>1,'exstate'=>1,'state'=>209),$vv['id']);
@@ -780,7 +780,7 @@ class Apismt extends Start_Controller {
 				}
 				}
 			}
 			}
 			$dlz = $this->apismt->get_out($v['waybill'],'all',$v['orderinfo'],$express['aecode'],$shop['code']);
 			$dlz = $this->apismt->get_out($v['waybill'],'all',$v['orderinfo'],$express['aecode'],$shop['code']);
-			$this->logic_ding->sendToDing("SMT运单同步【".$v['orderinfo']."】"."||执行信息二||".json_encode($dlz));
+			//$this->logic_ding->sendToDing("SMT运单同步【".$v['orderinfo']."】"."||执行信息二||".json_encode($dlz));
 			if(isset($dlz['result_success']) && $dlz['result_success'] == "true")
 			if(isset($dlz['result_success']) && $dlz['result_success'] == "true")
 			{
 			{
 				$this->fullordersmt->save(array('dlz'=>1,'exstate'=>1,'state'=>209),$v['id']);
 				$this->fullordersmt->save(array('dlz'=>1,'exstate'=>1,'state'=>209),$v['id']);

+ 3 - 3
core/CoreApp/models/Model_apitt.php

@@ -25,9 +25,9 @@ function __construct(){
 		$url .= $link.'&sign='.$sign;
 		$url .= $link.'&sign='.$sign;
 		$headers = array('Content-Type: application/json','x-tts-access-token:'.$shop['token']);
 		$headers = array('Content-Type: application/json','x-tts-access-token:'.$shop['token']);
 		$res = $this->su_curl($post,$url,$headers);
 		$res = $this->su_curl($post,$url,$headers);
-		if($shop['shopname'] == 'WestKiss Hair UK'){
-			$this->logic_ding->sendToDing($shop['shopname']."测试获取TT订单".$res);
-		}
+		// if($shop['shopname'] == 'WestKiss Hair UK'){
+		// 	$this->logic_ding->sendToDing($shop['shopname']."测试获取TT订单".$res);
+		// }
 		
 		
 		$res = json_decode($res,true);
 		$res = json_decode($res,true);
 		$list = array();$page_token = '';$arr = array();
 		$list = array();$page_token = '';$arr = array();

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

@@ -576,8 +576,8 @@ function __construct(){
 		// $this->logic_ding->sendToDing("usps快递地址核对参数"."【".$data['number']."】".json_encode($get,JSON_UNESCAPED_UNICODE));
 		// $this->logic_ding->sendToDing("usps快递地址核对参数"."【".$data['number']."】".json_encode($get,JSON_UNESCAPED_UNICODE));
 		// $this->logic_ding->sendToDing("usps快递地址核对结果"."【".$data['number']."】".$res);
 		// $this->logic_ding->sendToDing("usps快递地址核对结果"."【".$data['number']."】".$res);
 
 
-		$this->logic_ding->sendToDing("usps快递地址核对参数".json_encode($get));
-		$this->logic_ding->sendToDing("usps快递地址核对结果".$res);
+		// $this->logic_ding->sendToDing("usps快递地址核对参数".json_encode($get));
+		// $this->logic_ding->sendToDing("usps快递地址核对结果".$res);
 		$res = json_decode($res, true);
 		$res = json_decode($res, true);
 		if(isset($res['address']))
 		if(isset($res['address']))
 		{
 		{