Browse Source

关闭测试页面的访问路径

lvhao 1 tháng trước cách đây
mục cha
commit
71176c9726
1 tập tin đã thay đổi với 25 bổ sung21 xóa
  1. 25 21
      core/CoreApp/controllers/Aatest.php

+ 25 - 21
core/CoreApp/controllers/Aatest.php

@@ -71,6 +71,7 @@ class Aatest extends Start_Controller {
 		$this->load->_model("Model_logic_order","logic_order");
 		$this->load->_model("Model_job_get3pewaybillid",'job_get3pewaybillid');
 		$this->load->_model("Model_yuntu","yuntu");
+		$this->load->_model("Model_job_getyuntuwaybillid","job_getyuntuwaybillid");
 		
     }
 
@@ -128,28 +129,31 @@ class Aatest extends Start_Controller {
 		// ];
 		// $res = $this->yuntu->getTransferNumber($waybill_numbers);
 
-		$end_time = time() - 10 * 3600 * 24;
-        $start_time = time() - 3 * 3600 * 24;
-        //快递为3pe  76  出库时间十天前   waybillid 不能为空
-        $where = "express in (66,67) and librarytime >= ".$end_time ." and librarytime <= ".$start_time."  ";
-        //$where = "express = 76  and librarytime <= ".$start_time." ";
-        $fields = "id,number,waybill,waybillid,librarytime,express";
-		$list = $this->fullorder->find_all($where,$fields);
-        //echo "<pre>";
-
-		$final_list = [];
-        foreach($list as $item){
-            if(empty($item['waybillid'])){
-                $final_list[$item['waybill']] = $item['id'];
-            }else{
-                continue;
-            }
-        }
+		// $end_time = time() - 10 * 3600 * 24;
+        // $start_time = time() - 3 * 3600 * 24;
+        // //快递为3pe  76  出库时间十天前   waybillid 不能为空
+        // $where = "express in (66,67) and librarytime >= ".$end_time ." and librarytime <= ".$start_time."  ";
+        // //$where = "express = 76  and librarytime <= ".$start_time." ";
+        // $fields = "id,number,waybill,waybillid,librarytime,express";
+		// $list = $this->fullorder->find_all($where,$fields);
+        // //echo "<pre>";
 
-		echo "<pre>";
-		print_r($final_list);
-		die;
-		echo date("H",time());
+		// $final_list = [];
+        // foreach($list as $item){
+        //     if(empty($item['waybillid'])){
+        //         $final_list[] = $item['waybill'];
+        //     }else{
+        //         continue;
+        //     }
+        // }
+        // array_unique($final_list);
+		// echo "<pre>";
+		// var_dump($list);
+		// var_dump($final_list);
+		// die;
+		// echo date("H",time());
+		// set_time_limit(0);
+		// $this->job_getyuntuwaybillid->do_job();
 		//$this->job_get3pewaybillid->do_job();
     }