|  |  | @ -375,14 +375,14 @@ class ShixunsController < ApplicationController | 
			
		
	
		
		
			
				
					
					|  |  |  | 	def update |  |  |  | 	def update | 
			
		
	
		
		
			
				
					
					|  |  |  | 		# 镜像方面 |  |  |  | 		# 镜像方面 | 
			
		
	
		
		
			
				
					
					|  |  |  | 		mirror_ids = MirrorRepository.where(id: params[:main_type]) |  |  |  | 		mirror_ids = MirrorRepository.where(id: params[:main_type]) | 
			
		
	
		
		
			
				
					
					|  |  |  | 										 .or( MirrorRepository.where(id: params[:small_type])).pluck(:id).uniq |  |  |  | 										 .or( MirrorRepository.where(id: params[:sub_type])).pluck(:id).uniq | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		old_mirror_ids = @shixun.shixun_mirror_repositories |  |  |  | 		old_mirror_ids = @shixun.shixun_mirror_repositories | 
			
		
	
		
		
			
				
					
					|  |  |  | 							.where(mirror_repository_id: params[:main_type]) |  |  |  | 							.where(mirror_repository_id: params[:main_type]) | 
			
		
	
		
		
			
				
					
					|  |  |  | 							.or(@shixun.shixun_mirror_repositories.where(mirror_repository_id: params[:small_type])) |  |  |  | 							.or(@shixun.shixun_mirror_repositories.where(mirror_repository_id: params[:sub_type])) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 												 .pluck(:mirror_repository_id).uniq |  |  |  | 												 .pluck(:mirror_repository_id).uniq | 
			
		
	
		
		
			
				
					
					|  |  |  | 		new_mirror_id = (mirror_ids - old_mirror_ids).map{|id| {mirror_repository_id: id}} # 转换成数组hash方便操作 |  |  |  | 		new_mirror_id = (mirror_ids - old_mirror_ids).map{|id| {mirror_repository_id: id}} # 转换成数组hash方便操作 | 
			
		
	
		
		
			
				
					
					|  |  |  | 		logger.info("##########new_mirror_id: #{new_mirror_id}") |  |  |  | 		logger.info("##########new_mirror_id: #{new_mirror_id}") | 
			
		
	
		
		
			
				
					
					|  |  |  | 		logger.info("##########new_mirror_id: #{old_mirror_ids}") |  |  |  | 		logger.info("##########old_mirror_ids: #{old_mirror_ids}") | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 		logger.info("##########mirror_ids: #{mirror_ids}") |  |  |  | 		logger.info("##########mirror_ids: #{mirror_ids}") | 
			
		
	
		
		
			
				
					
					|  |  |  | 		# 服务配置方面 |  |  |  | 		# 服务配置方面 | 
			
		
	
		
		
			
				
					
					|  |  |  | 		service_create_params = service_config_params[:shixun_service_configs] |  |  |  | 		service_create_params = service_config_params[:shixun_service_configs] | 
			
		
	
	
		
		
			
				
					|  |  | 
 |