longyi 6 mesi fa
parent
commit
9124891dc4
2 ha cambiato i file con 33 aggiunte e 10 eliminazioni
  1. 32 9
      core/CoreApp/controllers/Aatest.php
  2. 1 1
      core/CoreApp/controllers/Ac.php

+ 32 - 9
core/CoreApp/controllers/Aatest.php

@@ -70,15 +70,37 @@ class Aatest extends Start_Controller {
 			$this->_getorder();
 		}elseif($arg == 'logistic'){
 			$this->_logistic();
+		}elseif($arg == 'th'){
+		    $this->_th($arg_array);
 		}else{
 			$this->_a($arg_array);
 		}
     }
+    
+    public function _th($arg_array){
+        die;
+        if(empty($arg_array)){
+            die(1);
+        }
+        $order_no = $arg_array[0];
+        var_dump($order_no);
+        $data = $this->fullorder->get_number($order_no);
+        
+        if(empty($data)){
+            echo 2;
+            exit(2);
+        }
+        
+        $r = $this->usps->get_return($data);
+        echo "<pre>";
+        var_dump($r);
+    }
 
 	//物流轨迹
 	public function  _logistic(){
 	    
 		echo "<pre>";
+		die;
 		// $list = $this->fullorder->find_all("waybill = 284280923614");
 		// var_dump($list);
 		// die;
@@ -91,15 +113,16 @@ class Aatest extends Start_Controller {
 		// die;
 		// die;
 		
-		$list = $this->fullorder->get_waybill("9205590251001335253257");
-		$v = $list;
-		@$fs = $this->usps->get_logistics($v);
-		$csck[] = array($v['number'],$fs['f'],$fs['content']);
-		if(!isset($fs['f']))
-		{
-			$fs = $this->usps->get_logistics($v);
-		}
-		var_dump($fs);
+		$list = $this->fullorder->get_waybill("9205890251001335261703");
+ 		$v = $list;
+  		@$fs = $this->usps->get_logistics_new($v);
+// 		$csck[] = array($v['number'],$fs['f'],$fs['content']);
+// 		if(!isset($fs['f']))
+// 		{
+// 			$fs = $this->usps->get_logistics($v);
+// 		}
+ 		var_dump($fs);
+        //$fs = $this->usps->get_logistics($v);
 		die;
 	}
 

+ 1 - 1
core/CoreApp/controllers/Ac.php

@@ -224,7 +224,7 @@ class Ac extends Start_Controller {
 		//echo $fullorder['zzl'];
 		echo  "<pre>";
 	
-		$b = $this->usps->get_data_new($fullorder);
+		//$b = $this->usps->get_data_new($fullorder);
 	
 		echo "<pre>";
 		print_r($b);