Bladeren bron

测试快递轨迹

lvhao 3 maanden geleden
bovenliggende
commit
b4739e961f
1 gewijzigde bestanden met toevoegingen van 10 en 6 verwijderingen
  1. 10 6
      core/CoreApp/controllers/Aatest.php

+ 10 - 6
core/CoreApp/controllers/Aatest.php

@@ -74,9 +74,9 @@ class Aatest extends Start_Controller {
 		}else if($arg == 'getorder'){
 			//$this->_getorder();
 		}elseif($arg == 'logistic'){
-			//$this->_logistic();
+			$this->_logistic($arg_array);
 		}elseif($arg == 'th'){
-		    $this->_th($arg_array);
+		   // $this->_th($arg_array);
 		}else{
 			
 			$this->_a($arg_array);
@@ -107,7 +107,11 @@ class Aatest extends Start_Controller {
 	public function  _logistic(){
 	    
 		echo "<pre>";
-	
+		if(empty($arg_array)){
+            die(1);
+        }
+        $order_no = $arg_array[0];
+        var_dump($order_no);
 		// $list = $this->fullorder->find_all("waybill = 284280923614");
 		// var_dump($list);
 		// die;
@@ -118,9 +122,9 @@ class Aatest extends Start_Controller {
 		// $fs = $this->fedexv1->get_logistics($v);
 		// var_dump($fs);
 		// die;
-		die;
+	
 		
-		$list = $this->fullorder->get_waybill("9205890251001335261703");
+		$list = $this->fullorder->get_number($order_no);
  		$v = $list;
   		@$fs = $this->usps->get_logistics_new($v);
 // 		$csck[] = array($v['number'],$fs['f'],$fs['content']);
@@ -128,7 +132,7 @@ class Aatest extends Start_Controller {
 // 		{
 // 			$fs = $this->usps->get_logistics($v);
 // 		}
- 		var_dump($fs);
+ 		print_r($fs);
         //$fs = $this->usps->get_logistics($v);
 		die;
 	}