lvhao 3 ヶ月 前
コミット
2b8ff40767
1 ファイル変更18 行追加6 行削除
  1. 18 6
      core/CoreApp/controllers/Aatest.php

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

@@ -70,6 +70,8 @@ class Aatest extends Start_Controller {
     //定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
     {
+
+		
 		// $this->zzjobs->insert([
 		// 	'status'=>0,
 		// 	'quque'=>'ysgjcx',//云尚轨迹查询
@@ -80,7 +82,7 @@ class Aatest extends Start_Controller {
 		// 	'do_interval'=>1,
 		// 	'create_time'=>time()
 		// ]);
-		die;
+		
 		// if($arg == 'fout')
         // {
         //      //$this->_fout();
@@ -94,11 +96,15 @@ class Aatest extends Start_Controller {
 		//    // $this->_th($arg_array);
 		// }else{
 			
-		// 	$this->_a($arg_array);
+			$this->_logistic();
 		// 	//$this->_mdedit($arg_array);
 		// }
-		$this->_doWcCp();
+		//$this->_print();
     }
+
+	public function _print(){
+		$this->_Template('aaadayin',$this->data);
+	}
     
 	public function _doWcCp(){
 		$info = $this->zzhjobs->find("status = 0");
@@ -173,7 +179,7 @@ class Aatest extends Start_Controller {
     }
 
 	//物流轨迹
-	public function  _logistic($arg_array){
+	public function  _logistic(){
 	    
 		echo "<pre>";
 		if(empty($arg_array)){
@@ -205,6 +211,11 @@ class Aatest extends Start_Controller {
 // 		{
 // 			$fs = $this->usps->get_logistics($v);
 // 		}
+		$fs = $this->cne->get_logistics_yskx([
+			[
+				"TrackNumber"=>"880739284316",
+			]
+		]);
  		print_r($fs);
         //$fs = $this->usps->get_logistics($v);
 		die;
@@ -287,7 +298,7 @@ class Aatest extends Start_Controller {
 			'dtctitle'=>$dtctitle
 		];
 	}
-    public function _a($arg_array){
+    public function _a(){
 		
 		echo "<pre>";
 		// $str = "86,-2397-957-101-146-29-72-2071-|A041 #P18/613 Straight 13*4 Frontal Wig Small 180% Ready to Go 16inch |1|0.00|0.00|16|0.00|0.00|255|0;87,-128-80-2323-57-104-146-29-72-2071-|Wigs 9A A032 Natural Black Deep Wave 13*4 Frontal Wig Small 180% Ready to Go 18inch |1|0.00|0.00|18|0.00|0.00|265|0;";
@@ -308,8 +319,9 @@ class Aatest extends Start_Controller {
 		$data = $this->getDtc();
 		$dtc = $data['dtc'];
 		$dtctitle = $data['dtctitle'];
+		//die;
 		$quantity = '1';
-		$issku = 'STW-Ponytail-24-Accs-135g';
+		$issku = 'NW-Ponytail-10-Accs-175g';
 		$money = array();
 			$productdescribe = $this->productdescribe->find_all('1=1');
 			foreach ($productdescribe as $v)