|  |  |  | @ -1115,8 +1115,8 @@ class ShixunsController < ApplicationController | 
			
		
	
		
			
				
					|  |  |  |  |       g.delete_project(@shixun.gpid) if @shixun.try(:gpid).present? | 
			
		
	
		
			
				
					|  |  |  |  |       apply_record = ApplyAction.where(:container_id => @shixun.id, :container_type => "ApplyShixun") | 
			
		
	
		
			
				
					|  |  |  |  |       apply_record.delete_all if apply_record | 
			
		
	
		
			
				
					|  |  |  |  |       HomeworkCommonsShixuns.where(:shixun_id => @shixun).delete_all # 关联删报错,后续解决 | 
			
		
	
		
			
				
					|  |  |  |  |       @shixun.destroy | 
			
		
	
		
			
				
					|  |  |  |  |       #HomeworkCommonsShixuns.where(:shixun_id => @shixun).delete_all # 关联删报错,后续解决 | 
			
		
	
		
			
				
					|  |  |  |  |       @shixun.update_attribute(:status, -1) | 
			
		
	
		
			
				
					|  |  |  |  |       respond_to do |format| | 
			
		
	
		
			
				
					|  |  |  |  |         if params[:come_from] == "admin" | 
			
		
	
		
			
				
					|  |  |  |  |           format.html{ redirect_to shixuns_managements_path } | 
			
		
	
	
		
			
				
					|  |  |  | @ -1215,7 +1215,7 @@ class ShixunsController < ApplicationController | 
			
		
	
		
			
				
					|  |  |  |  |   # Find shixun of id params[:id] | 
			
		
	
		
			
				
					|  |  |  |  |   def find_shixun | 
			
		
	
		
			
				
					|  |  |  |  |     @shixun = Shixun.find_by_identifier(params[:id]) | 
			
		
	
		
			
				
					|  |  |  |  |     render_404 if @shixun.nil? | 
			
		
	
		
			
				
					|  |  |  |  |     render_404 if @shixun.nil? || @shixun.status == -1 | 
			
		
	
		
			
				
					|  |  |  |  |   rescue ActiveRecord::RecordNotFound | 
			
		
	
		
			
				
					|  |  |  |  |     render_404 | 
			
		
	
		
			
				
					|  |  |  |  |   end | 
			
		
	
	
		
			
				
					|  |  |  | @ -1362,4 +1362,8 @@ class ShixunsController < ApplicationController | 
			
		
	
		
			
				
					|  |  |  |  |   def validation_email | 
			
		
	
		
			
				
					|  |  |  |  |     render_403 if User.current.mail.blank? | 
			
		
	
		
			
				
					|  |  |  |  |   end | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   def validate_shixun | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   end | 
			
		
	
		
			
				
					|  |  |  |  | end | 
			
		
	
	
		
			
				
					|  |  |  | 
 |