Browse Source

测试fedex新接口

lvhao 6 months ago
parent
commit
75f83a4662

+ 4 - 1
core/CoreApp/controllers/Systemfout.php

@@ -41,6 +41,7 @@ class Systemfout extends Start_Controller {
 		$this->load->_model('Model_fullorderxw','fullorderxw');
 		$this->load->_model('Model_fullorderpaypal','fullorderpaypal');
 		$this->load->_model("Model_logic_ding","logic_ding");
+		$this->load->_model("Model_Fedexv1",'fedexv1');
 	}
 	//定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
@@ -930,7 +931,9 @@ class Systemfout extends Start_Controller {
 			$time = time();
 			if($express['printcode'] == "FEDEXGF")
 			{
-			    $barcode = $this->fedex->get_data($fullorder);//获取联邦快递信息
+			   // $barcode = $this->fedex->get_data($fullorder);//获取联邦快递信息
+			   //升级的api
+				$barcode = $this->fedexv1->get_data($fullorder);//获取联邦快递信息
 			    if($barcode['x'] == 1)
 			    {
 				    $bctime = date('Ymd',$time);

+ 5 - 1
core/CoreApp/controllers/Systemprint.php

@@ -45,6 +45,7 @@ class Systemprint extends Start_Controller {
 		$this->load->helper('url');
 		$this->load->_model("Model_yuntu","yuntu");
 		$this->load->_model("Model_api","api");
+		$this->load->_model("Model_Fedexv1",'fedexv1');
 	}
 	//定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
@@ -974,7 +975,10 @@ class Systemprint extends Start_Controller {
 				}
 				else if($fullorder['printcode'] == "FEDEXGF")//官方FEDEX接口
 				{
-				    $barcode = $this->fedex->get_data($fullorder);//获取联邦快递信息
+					
+				   // $barcode = $this->fedex->get_data($fullorder);//获取联邦快递信息
+				    //接口升级
+					$barcode = $this->fedexv1->get_data($fullorder);//获取联邦快递信息
 					if($barcode['x'] == 1)
 					{
 						$bctime = date('Ymd',$time);