mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 07:50:25 +08:00 
			
		
		
		
	修复没有日志数据库时无法进行分区查询的Bug
This commit is contained in:
		@@ -64,6 +64,14 @@ func AllAccessLogDBs() []*dbs.DB {
 | 
			
		||||
	for _, db := range accessLogDBMapping {
 | 
			
		||||
		result = append(result, db)
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if len(result) == 0 {
 | 
			
		||||
		db, _ := dbs.Default()
 | 
			
		||||
		if db != nil {
 | 
			
		||||
			result = append(result, db)
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return result
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user