| 
															
																@@ -315,6 +315,7 @@ class Api extends Start_Controller { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			} 
															 | 
															
															 | 
															
																 			} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 			foreach ($shop as $value)  
															 | 
															
															 | 
															
																 			foreach ($shop as $value)  
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		    { 
															 | 
															
															 | 
															
																 		    { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+				$value['tbtime'] = 0; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				if((time()-$value['tbtime']) < 600) 
															 | 
															
															 | 
															
																 				if((time()-$value['tbtime']) < 600) 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 				{ 
															 | 
															
															 | 
															
																 				{ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 					$tb = 1;//正在同步中 
															 | 
															
															 | 
															
																 					$tb = 1;//正在同步中 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -646,6 +647,7 @@ class Api extends Start_Controller { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 								    $hbw[$k] = implode("-",$w); 
															 | 
															
															 | 
															
																 								    $hbw[$k] = implode("-",$w); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 								} 
															 | 
															
															 | 
															
																 								} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 							} 
															 | 
															
															 | 
															
																 							} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+							$post['insurance'] = 1; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 							$post['fpdata'] = implode(";",$hbf).';'; 
															 | 
															
															 | 
															
																 							$post['fpdata'] = implode(";",$hbf).';'; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 							$post['whlabel'] = '|'.implode("|",$hbw).'|'; 
															 | 
															
															 | 
															
																 							$post['whlabel'] = '|'.implode("|",$hbw).'|'; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 							//非占单设置为禁止占单结束 
															 | 
															
															 | 
															
																 							//非占单设置为禁止占单结束 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@@ -2690,8 +2692,19 @@ class Api extends Start_Controller { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 	public function _update17ds(){ 
															 | 
															
															 | 
															
																 	public function _update17ds(){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		$list = $this->awlgx->find_all("time > 1757897489 and exstate = 6 and type = 'fullorder'"); 
															 | 
															
															 | 
															
																 		$list = $this->awlgx->find_all("time > 1757897489 and exstate = 6 and type = 'fullorder'"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		$numbers = array_column($list,'number'); 
															 | 
															
															 | 
															
																 		$numbers = array_column($list,'number'); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		$tmp_list = []; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		foreach($numbers as $number){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+			$info = $this->fullorder->get_number($number); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+			$cksj = 1757292689; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+			if($info['librarytime'] > $cksj && $info['exstate'] < 6) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+				$tmp_list[] = $number; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+			} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		echo "<pre>"; 
															 | 
															
															 | 
															
																 		echo "<pre>"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																-		print_r($numbers); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																+		print_r($tmp_list); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		die; 
															 | 
															
															 | 
															
																 		die; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 		//$order_info =  
															 | 
															
															 | 
															
																 		//$order_info =  
															 | 
														
													
												
													
														
															| 
															 | 
															
																  
															 | 
															
															 | 
															
																  
															 |