|  | @@ -447,4 +447,20 @@ class Api
 | 
	
		
			
				|  |  |          $response = $this->showTable($response);
 | 
	
		
			
				|  |  |          return '接口名称:'.$name.'<br />接口地址:<br  />'.Dever::url($site, $project).'<br />'.$html.'请求参数:<br />'.$request.'<br />输出参数:<br />'.$response;
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    # 获取日志信息
 | 
	
		
			
				|  |  | +    public function getLog($tid, $project, $table, $type = 1)
 | 
	
		
			
				|  |  | +    {
 | 
	
		
			
				|  |  | +        $where['project'] = $project;
 | 
	
		
			
				|  |  | +        $where['table'] = $table;
 | 
	
		
			
				|  |  | +        $where['tid'] = $tid;
 | 
	
		
			
				|  |  | +        $where['type'] = $type;
 | 
	
		
			
				|  |  | +        $info = Dever::db('manage/log')->find($where);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        if ($info) {
 | 
	
		
			
				|  |  | +            $info['info'] = Dever::json_decode($info['info']);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        return $info;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 |