|  |  | @ -476,14 +476,13 @@ class GamesController < ApplicationController | 
			
		
	
		
		
			
				
					
					|  |  |  |         if @myshixun.shixun.try(:status) < 2 |  |  |  |         if @myshixun.shixun.try(:status) < 2 | 
			
		
	
		
		
			
				
					
					|  |  |  |           tip_exception("代码获取异常,请检查实训模板的评测设置是否正确") |  |  |  |           tip_exception("代码获取异常,请检查实训模板的评测设置是否正确") | 
			
		
	
		
		
			
				
					
					|  |  |  |         else |  |  |  |         else | 
			
		
	
		
		
			
				
					
					|  |  |  |           # 报错继续retry |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           if params[:retry].to_i == 1 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             # 如果报错了,并且retry 为1的时候,则fork一个新的仓库 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             project_fork(@myshixun, @shixun.repo_path, current_user.login) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           end |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           tip_exception(-3, "#{e.message}") |  |  |  |           tip_exception(-3, "#{e.message}") | 
			
		
	
		
		
			
				
					
					|  |  |  |         end |  |  |  |         end | 
			
		
	
		
		
			
				
					
					|  |  |  |       end |  |  |  |       end | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       # 如果报错了,并且retry 为1的时候,则fork一个新的仓库 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       if params[:retry].to_i == 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         project_fork(@myshixun, @shixun.repo_path, current_user.login) | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |       end | 
			
		
	
		
		
			
				
					
					|  |  |  |       tip_exception(0, e.message) |  |  |  |       tip_exception(0, e.message) | 
			
		
	
		
		
			
				
					
					|  |  |  |     end |  |  |  |     end | 
			
		
	
		
		
			
				
					
					|  |  |  |   end |  |  |  |   end | 
			
		
	
	
		
		
			
				
					|  |  | 
 |