|
|
@ -584,11 +584,11 @@ class GamesService
|
|
|
|
params[:needPortMapping] = 8080 if myshixun.mirror_name.include?("Web")
|
|
|
|
params[:needPortMapping] = 8080 if myshixun.mirror_name.include?("Web")
|
|
|
|
|
|
|
|
|
|
|
|
# 中间层交互
|
|
|
|
# 中间层交互
|
|
|
|
if shixun.sigle_training
|
|
|
|
#if shixun.sigle_training
|
|
|
|
uri = "#{shixun_tomcat}/bridge/game/persistence/gameEvaluate"
|
|
|
|
# uri = "#{shixun_tomcat}/bridge/game/persistence/gameEvaluate"
|
|
|
|
else
|
|
|
|
#else
|
|
|
|
uri = "#{shixun_tomcat}/bridge/game/gameEvaluate"
|
|
|
|
uri = "#{shixun_tomcat}/bridge/game/gameEvaluate"
|
|
|
|
end
|
|
|
|
#end
|
|
|
|
|
|
|
|
|
|
|
|
res = interface_post uri, params, 502
|
|
|
|
res = interface_post uri, params, 502
|
|
|
|
# 单评测类型(比较快的类型,实时返回结果,即不用中间层再回调trainint_task_status)
|
|
|
|
# 单评测类型(比较快的类型,实时返回结果,即不用中间层再回调trainint_task_status)
|
|
|
|