|  | @@ -43,7 +43,7 @@ class DataStorageStatistics(QgsProcessingAlgorithm):
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      def initAlgorithm(self, config=None):
 | 
	
		
			
				|  |  |          self.addParameter(QgsProcessingParameterProviderConnection(
 | 
	
		
			
				|  |  | -            self.DATABASE, '数据库连接', 'postgres', defaultValue=siwei_config['db']['host']))
 | 
	
		
			
				|  |  | +            self.DATABASE, '数据库连接', 'postgres', defaultValue=siwei_config.CONFIG['db']['host']))
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          self.addParameter(QgsProcessingParameterDatabaseSchema(
 | 
	
		
			
				|  |  |              self.SCHEMA, '模式', connectionParameterName=self.DATABASE, defaultValue='base'))
 | 
	
	
		
			
				|  | @@ -59,11 +59,11 @@ class DataStorageStatistics(QgsProcessingAlgorithm):
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      def processAlgorithm(self, parameters, context, feedback):
 | 
	
		
			
				|  |  |          connection_params = {
 | 
	
		
			
				|  |  | -            'host': siwei_config['db']['host'],
 | 
	
		
			
				|  |  | -            'port': siwei_config['db']['port'],
 | 
	
		
			
				|  |  | -            'dbname': siwei_config['db']['name'],
 | 
	
		
			
				|  |  | -            'user': siwei_config['db']['user'],
 | 
	
		
			
				|  |  | -            'password': siwei_config['db']['password'],
 | 
	
		
			
				|  |  | +            'host': siwei_config.CONFIG['db']['host'],
 | 
	
		
			
				|  |  | +            'port': siwei_config.CONFIG['db']['port'],
 | 
	
		
			
				|  |  | +            'dbname': siwei_config.CONFIG['db']['name'],
 | 
	
		
			
				|  |  | +            'user': siwei_config.CONFIG['db']['user'],
 | 
	
		
			
				|  |  | +            'password': siwei_config.CONFIG['db']['password'],
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          schema = self.parameterAsString(parameters, self.SCHEMA, context)
 |