Explorar o código

提交速卖通的监听

lvhao hai 4 días
pai
achega
4ce46d3f82

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

@@ -293,6 +293,8 @@ class Apismt extends Start_Controller {
 					$fl = $this->ck->get_fl($warehouse['hz'],$dataorder['whlabel'],$dataorder['fpdata']);
 					
 					**/
+
+					$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']);
 				}
 			}
@@ -761,6 +763,7 @@ class Apismt extends Start_Controller {
 				foreach ($t as $vv)
 		        {
 					$d = $this->apismt->get_out($v['waybill'],'all',$vv['orderinfo'],$express['aecode'],$shop['code']);
+					$this->logic_ding->sendToDing("SMT运单同步【".$vv['orderinfo']."】"."||执行信息一||".json_encode($d));
 					if(isset($d['result_success']) && $d['result_success'] == "true")
 					{
 						$this->fullordersmt->save(array('dlz'=>1,'exstate'=>1,'state'=>209),$vv['id']);
@@ -777,6 +780,7 @@ class Apismt extends Start_Controller {
 				}
 			}
 			$dlz = $this->apismt->get_out($v['waybill'],'all',$v['orderinfo'],$express['aecode'],$shop['code']);
+			$this->logic_ding->sendToDing("SMT运单同步【".$v['orderinfo']."】"."||执行信息二||".json_encode($d));
 			if(isset($dlz['result_success']) && $dlz['result_success'] == "true")
 			{
 				$this->fullordersmt->save(array('dlz'=>1,'exstate'=>1,'state'=>209),$v['id']);

+ 1 - 1
core/CoreApp/models/Model_apismt.php

@@ -150,7 +150,7 @@ function __construct(){
 		//$this->logic_ding->sendToDing("SMT运单同步".json_encode($post,JSON_UNESCAPED_UNICODE));
         curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($post));
 		$res = curl_exec($ch);
-		$this->logic_ding->sendToDing("SMT运单同步".json_encode($post,JSON_UNESCAPED_UNICODE)."||".$res);
+		$this->logic_ding->sendToDing("SMT运单同步【".$orderinfo."】".json_encode($post,JSON_UNESCAPED_UNICODE)."||".$res);
 		curl_close($ch);
 		$res = json_decode($res,true);
 		if(isset($res))