|
|
@ -146,8 +146,9 @@ class MyshixunsController < ApplicationController
|
|
|
|
# status:0表示评测成功
|
|
|
|
# status:0表示评测成功
|
|
|
|
if status == "0"
|
|
|
|
if status == "0"
|
|
|
|
if resubmit.present?
|
|
|
|
if resubmit.present?
|
|
|
|
uid_logger("#############resubmit: #{resubmit}")
|
|
|
|
uid_logger("#############resubmitdaiao: #{resubmit}")
|
|
|
|
game.update_attributes!(:retry_status => 2, :resubmit_identifier => resubmit)
|
|
|
|
game.update_attributes!(:retry_status => 2, :resubmit_identifier => resubmit)
|
|
|
|
|
|
|
|
uid_logger("#############resubmit_identifier_resubmitdaiao: #{game.resubmit_identifier}")
|
|
|
|
challenge.path.split(";").each do |path|
|
|
|
|
challenge.path.split(";").each do |path|
|
|
|
|
game_passed_code(path.try(:strip), myshixun, game_id)
|
|
|
|
game_passed_code(path.try(:strip), myshixun, game_id)
|
|
|
|
end
|
|
|
|
end
|
|
|
|