소스 검색

上传tkus的快递方式

lvhao 5 일 전
부모
커밋
635b34f14d
1개의 변경된 파일14개의 추가작업 그리고 3개의 파일을 삭제
  1. 14 3
      core/CoreApp/controllers/Systemprint.php

+ 14 - 3
core/CoreApp/controllers/Systemprint.php

@@ -1760,9 +1760,20 @@ class Systemprint extends Start_Controller {
 						$failed = $barcode['Description'];//错误提示
 						$this->$fullorder_name->save(array('print'=>1,'failed'=>$failed),$va[$n]);
 					}
-				}elseif(($fullorder['printcode'] == "TTUK")){
-					$barcode = $this->express_tt->get_data($fullorder,"FBT");
-					$this->logic_ding->sendToDing("TTUK获取快递面单".json_encode($barcode));
+				}elseif(($fullorder['printcode'] == "TTUK") || ($fullorder['printcode'] == "TTUS")){
+					if($fullorder['printcode'] == "TTUK"){
+						$barcode = $this->express_tt->get_data($fullorder,"FBT");
+						$this->logic_ding->sendToDing("TTUK获取快递面单".json_encode($barcode));
+					}elseif($fullorder['printcode'] == "TTUS"){
+						$barcode = $this->express_tt->get_data($fullorder,"CBT");
+						$this->logic_ding->sendToDing("TTUS获取快递面单".json_encode($barcode));
+					}else{
+						$barcode = [
+							'x'=>0,
+							'Description'=>"未找到此快递运单接口"
+						];
+					}
+					
 					if($barcode['x'] == 1)
 					{
 						$bctime = date('Ymd',$time);