|  |  |  | @ -886,9 +886,16 @@ class GamesService | 
			
		
	
		
			
				
					|  |  |  |  |     next_game = Game.next_game(shixun.id, game.myshixun_id, game_challenge.position).try(:identifier) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     output_hash = {:test_sets => test_sets, :had_test_count => test_sets_count, :test_sets_count => test_sets_count, :had_passed_testsests_error_count => had_passed_testsests_error_count} | 
			
		
	
		
			
				
					|  |  |  |  |     return {:grade => grade, :gold => score, :experience => experience, :status => game_status, :had_done => had_done, :position => game_challenge.position, | 
			
		
	
		
			
				
					|  |  |  |  |             :port => port, :power => power, :record => record, :mirror_name => mirror_name, :picture => picture, :web_route => web_route, :latest_output => latest_output, | 
			
		
	
		
			
				
					|  |  |  |  |             :star => game.star, :next_game => next_game, :prev_game => prev_game}.merge(output_hash) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     # 代码评测的信息 | 
			
		
	
		
			
				
					|  |  |  |  |     running_code_status = game.run_code_message.try(:status) | 
			
		
	
		
			
				
					|  |  |  |  |     running_code_message = game.run_code_message.try(:message) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     return {:grade => grade, :gold => score, :experience => experience, :status => game_status, :had_done => had_done, | 
			
		
	
		
			
				
					|  |  |  |  |             :position => game_challenge.position, :port => port, :power => power, :record => record, | 
			
		
	
		
			
				
					|  |  |  |  |             :mirror_name => mirror_name, :picture => picture, :web_route => web_route, :latest_output => latest_output, | 
			
		
	
		
			
				
					|  |  |  |  |             :star => game.star, :next_game => next_game, :prev_game => prev_game, | 
			
		
	
		
			
				
					|  |  |  |  |             :running_code_status => running_code_status, :running_code_message => running_code_message}.merge(output_hash) | 
			
		
	
		
			
				
					|  |  |  |  |   end | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   # 记录实训花费的时间,前端是通过ent_time - open_time,所以最终只更新open_time即可 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |