Ver Fonte

提交云途美国的打印方式

lvhao há 4 dias atrás
pai
commit
3f8dca0f1a
1 ficheiros alterados com 9 adições e 2 exclusões
  1. 9 2
      core/CoreApp/controllers/Systemprint.php

+ 9 - 2
core/CoreApp/controllers/Systemprint.php

@@ -46,6 +46,7 @@ class Systemprint extends Start_Controller {
 		$this->load->_model('Model_setting','setting');
 		$this->load->helper('url');
 		$this->load->_model("Model_yuntu","yuntu");
+		$this->load->_model("Model_yuntuus","yuntuus");
 		$this->load->_model("Model_api","api");
 		$this->load->_model("Model_fedexv1",'fedexv1');
 		$this->load->_model("Model_customsdeclaration","customsdeclaration");
@@ -1619,7 +1620,7 @@ class Systemprint extends Start_Controller {
 					}
 				}
 			    /** 云途开始**/
-				else if(($fullorder['printcode'] == "YunExpress")||($fullorder['printcode'] =='YunExpress_BaoXian'))
+				else if(($fullorder['printcode'] == "YunExpress")||($fullorder['printcode'] =='YunExpress_BaoXian') ||($fullorder['printcode'] =='YunExpress_JFPHTKR'))
 				{
 				// 	echo "123";
 				// 	exit;
@@ -1639,7 +1640,13 @@ class Systemprint extends Start_Controller {
 				// 		}
 				// 	}
 				// 	else{
-						$barcode = $this->yuntu->get_data($fullorder);//获取快递信息
+
+						if($fullorder['printcode'] == "YunExpress_JFPHTKR"){
+							$barcode = $this->yuntuus->get_data($fullorder);//获取快递信息
+						}else{
+							$barcode = $this->yuntu->get_data($fullorder);//获取快递信息
+						}
+						
 						// var_dump($barcode);
 						if($barcode['x'] == 1){
 							$bctime = date('Ymd',$time);