恢复调试

dev_ec
daiao 6 years ago
parent 2374e6f31c
commit 0bfee48829

@ -863,12 +863,12 @@ class ManagementsController < ApplicationController
# 评测时间列表
def evaluate_records
shixun_tomcat = Redmine::Configuration['shixun_tomcat']
#uri = "#{shixun_tomcat}/bridge/monitor/getPodsInfo"
#res = uri_exec uri, params
#if res['code'] == 0
@pod_num = 1 # res['sum']
@pod_dis = [{ip: 1, num: 1}] #JSON.parse(res['distr']) if res['distr'].present?
#end
uri = "#{shixun_tomcat}/bridge/monitor/getPodsInfo"
res = uri_exec uri, params
if res['code'] == 0
@pod_num = res['sum']
@pod_dis = JSON.parse(res['distr']) if res['distr'].present?
end
page = (params['page'] || 1).to_i
search = params[:search]

Loading…
Cancel
Save