单例模式没使用

dev_library
daiao 6 years ago
parent f698b1468c
commit 088c9fc4a1

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

Loading…
Cancel
Save