longyi 3 місяців тому
батько
коміт
8c957f57b5

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

@@ -107,7 +107,12 @@ class Aatest extends Start_Controller {
 	public function linshi(){
 		
 		//  订单加入键值-k 
-		$fdata  = $this->fullorder->find_all(" source != 1  and  state  = 207  and  express  = 72  and  librarytime >=  1744473600   and  librarytime < 1746892800" ,"*",null,0,1);
+		$fdata  = $this->fullorder->find_all(" source != 1  and  state  = 207  and  express  = 72  and  librarytime >=  1744473600   and  librarytime < 1746892800" ,"*",null);
+		
+		foreach($fdata as $k=>$v){
+		    $this->fullorder->save(array('dlz'=>1,'state'=>216),$v['id']);
+		    usleep(100);
+		}
 		echo "<pre>";
 		print_r(count($fdata));
 	    	

+ 2 - 0
core/CoreApp/controllers/Api.php

@@ -856,9 +856,11 @@ class Api extends Start_Controller {
 		{
 			exit;
 		}
+	
 		$dataorder = array();$datashop = array();$dataex = array();$datack = array();
 		//  订单加入键值-k 
 		$fdata = $this->fullorder->find_all($where);//,'source,id,orderinfo,waybill,shop,express,type,msg,bname,state,client,name,phone,zipcode,address,email,shopify'
+	
 		//*  订单加入键值-j 
 		//*  店铺加入键值-j 
 		$fshop = $this->shop->find_all('1=1');