评测策略修改

dev_ec
daiao 6 years ago
parent fcfda1f9a2
commit b139d1cf28

@ -466,7 +466,8 @@ class MyshixunsController < ApplicationController
end
# taskId 即返回的game id
# 返回结果params [:stauts] 0 表示成功,其它则失败
# 返回结果params [:stauts] 0 表示运行结果成功,其它则失败
# compile_success 1 表示成功; 0表示失败
# msg 错误信息
# output 为测试用户编译输出结果
# myshixun:status 1为完成实训
@ -526,7 +527,7 @@ class MyshixunsController < ApplicationController
logger.info("training_task_status start#3**#{game_id}**** #{Time.now.strftime("%Y-%m-%d %H:%M:%S.%L")}")
# status0表示评测成功
if status == "0"
if compile_success.to_i == 1 && status == "0"
if !resubmit.blank?
game.update_attributes!(:retry_status => 2, :resubmit_identifier => resubmit)
#if game.had_done == 1

Loading…
Cancel
Save