longyi 2 недель назад
Родитель
Сommit
2896a854c9
2 измененных файлов с 11 добавлено и 8 удалено
  1. 1 1
      core/CoreApp/controllers/Aatest.php
  2. 10 7
      core/CoreApp/controllers/Boss.php

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

@@ -93,7 +93,7 @@ class Aatest extends Start_Controller {
     //定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
     {   
-		$fullorder = $this->logic_order->getInfo("number = 'TT-WK-260124-053'");
+		$fullorder = $this->logic_order->getInfo("number = 'TT-ASTE-260124-009'");
 		$res = $this->express_tt->get_data($fullorder,"CBT");;
 		echo "<pre>";
 		print_r($res);

+ 10 - 7
core/CoreApp/controllers/Boss.php

@@ -2172,14 +2172,17 @@ class Boss extends Start_Controller
 			for ($i = 1; $i < $n; $i++) {
 				$t = $j - ($n * 24 * 60 * 60) + ($i * 24 * 60 * 60);
 
-				$where = "$time > '$t' and $time < '" . ($t + 24 * 3600) . "' and shop = '" . $val['id'] . "'";
-				if($source == '2d'){
-					$where.= "  and source > 2  ";
-				}
-				if($source == '1'){
-					$where.= "  and source = 1  ";
-				}
+			
+				
 				foreach ($shop as $val) {
+				    $where = "";
+			    	$where = "$time > '$t' and $time < '" . ($t + 24 * 3600) . "' and shop = '" . $val['id'] . "'";
+    				if($source == '2d'){
+    					$where.= "  and source > 2  ";
+    				}
+    				if($source == '1'){
+    					$where.= "  and source = 1  ";
+    				}
 					if($val['type'] == 269){
 						$data = $this->fullorder->find_all($where);
 						$dd = 0;