代码测试编译信息长度限制不小心注释了

This commit is contained in:
yuanke 2016-05-16 17:02:18 +08:00
parent 708cb35fd2
commit 025d07e6a4
2 changed files with 3 additions and 3 deletions

View File

@ -132,9 +132,9 @@ class StudentWorkController < ApplicationController
#-1 默认值 0全部正确并结束 2 超时 -2 编译错误
resultObj[:status] = -1
resultObj[:results] = result["results"].first #本次测试结果
# if result["status"].to_i == -2 #编译错误
if result["status"].to_i == -2 #编译错误
result["error_msg"] = result["error_msg"][0..2047]
# end
end
resultObj[:error_msg] = result["error_msg"] #编译错误时的信息
#该状态用于存入CodeTests

View File

@ -1262,7 +1262,7 @@ function description_showwords_ellipsis(id,num){
}
//by yk 弹框 tWidth = 580 tTop=30 tLeft=50
//by yk 弹框 valuehtml代码或跳转其他页面代码 tWidth = 580 tTop=30 tLeft=50
function pop_up_box(value,tWidth,tTop,tLeft){
if(!tWidth){