code转json格式
This commit is contained in:
parent
f2e337fb12
commit
8252621991
|
@ -98,7 +98,7 @@ class GamesController < ApplicationController
|
|||
testCode.store("testCode_#{index}",test_set.try(:output))
|
||||
end
|
||||
end
|
||||
|
||||
testCode = testCode.to_json
|
||||
jenkins_shixuns = Redmine::Configuration['jenkins_shixuns']
|
||||
step = @game.stage
|
||||
params = {:jobName => "#{jobName}", :taskId => "#{taskId}", :step => "#{step}", :gitUrl => "#{gitUrl}", :testCode => "#{testCode}"}
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
class Game < ActiveRecord::Base
|
||||
# stauts 0: can exe 1:doing 2:successed 3:locked
|
||||
default_scope :order => 'stage'
|
||||
attr_accessible :description, :myshixun_id, :stage, :subject, :user_id, :status, :ready_knowledge, :task_pass, :answer, :score, :final_score
|
||||
attr_accessible :description, :myshixun_id, :stage, :subject, :user_id, :status, :ready_knowledge, :task_pass, :answer, :score, :final_score, :path
|
||||
belongs_to :myshixun,:touch=> true
|
||||
belongs_to :user
|
||||
has_many :outputs, :dependent => :destroy
|
||||
|
|
Loading…
Reference in New Issue