加个gem 'certified'
This commit is contained in:
parent
a39702f962
commit
6237bcb6cd
1
Gemfile
1
Gemfile
|
@ -6,6 +6,7 @@ unless RUBY_PLATFORM =~ /w32/
|
||||||
gem 'iconv'
|
gem 'iconv'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
gem 'certified'
|
||||||
gem 'grack', path:'lib/grack'
|
gem 'grack', path:'lib/grack'
|
||||||
gem 'gitlab', path: 'lib/gitlab-cli'
|
gem 'gitlab', path: 'lib/gitlab-cli'
|
||||||
gem 'rest-client'
|
gem 'rest-client'
|
||||||
|
|
|
@ -123,7 +123,7 @@ class StudentWorkController < ApplicationController
|
||||||
#-1 默认值 0全部正确并结束 2 超时 -2 编译错误
|
#-1 默认值 0全部正确并结束 2 超时 -2 编译错误
|
||||||
resultObj[:status] = -1
|
resultObj[:status] = -1
|
||||||
resultObj[:results] = result["results"].first #本次测试结果
|
resultObj[:results] = result["results"].first #本次测试结果
|
||||||
result["error_msg"] = result["error_msg"][0..1023]
|
result["error_msg"] = result["error_msg"][0..2047]
|
||||||
resultObj[:error_msg] = result["error_msg"] #编译错误时的信息
|
resultObj[:error_msg] = result["error_msg"] #编译错误时的信息
|
||||||
|
|
||||||
#该状态用于存入CodeTests
|
#该状态用于存入CodeTests
|
||||||
|
|
Loading…
Reference in New Issue