Basic API and Authentication extensions.
这个提交包含在:
		
							父节点
							
								
									8a793391ad
								
							
						
					
					
						当前提交
						aa5622ab29
					
				
					共有  1 个文件被更改,包括 9 次插入 和 1 次删除
				
			
		|  | @ -281,6 +281,14 @@ class Logbook_model extends CI_Model { | ||||||
|         return $query; |         return $query; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | 	function api_search_query($query) { | ||||||
|  | 		$time_start = microtime(true); | ||||||
|  | 		$results = @$this->db->query($query); | ||||||
|  | 		$time_end = microtime(true); | ||||||
|  | 		$time = round($time_end - $time_start, 4); | ||||||
|  | 
 | ||||||
|  | 		return array('query' => $query, 'results' => $results, 'time' => $time); | ||||||
|  | 	} | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| ?>
 | ?>
 | ||||||
		正在加载…
	
		在新工单中引用