dev_local
cxt 6 years ago
parent e7fd1a243b
commit 085eba92d9

@ -115,9 +115,7 @@ class WelcomeController < ApplicationController
# 先同步实训
local_shixun = LocalShixun.where(id: local_stage_shixun.local_shixun_id).first
shixun = _local_to_shixun(local_shixun) if local_shixun.present?
puts("#############local_shixun_id#{local_shixun.id}")
puts("#############shixun_id#{shixun.id}")
if shixun
new_stage_shixun = StageShixun.new
new_stage_shixun.position = local_stage_shixun.position
new_stage_shixun.stage_id = new_stage.id
@ -127,6 +125,7 @@ class WelcomeController < ApplicationController
end
end
end
end
subject_list << subject.id
end
render :json => {status: 0, message: "success", identifier: subject_list}

Loading…
Cancel
Save