|
|
@ -65,6 +65,8 @@ class HacksController < ApplicationController
|
|
|
|
param_update_sets params[:update_hack_sets], set_ids
|
|
|
|
param_update_sets params[:update_hack_sets], set_ids
|
|
|
|
# 新建
|
|
|
|
# 新建
|
|
|
|
@hack.hack_sets.create!(hack_sets_params)
|
|
|
|
@hack.hack_sets.create!(hack_sets_params)
|
|
|
|
|
|
|
|
# 更新代码
|
|
|
|
|
|
|
|
@hack.hack_codes.create!(hack_code_params)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
render_ok
|
|
|
|
render_ok
|
|
|
|
rescue Exception => e
|
|
|
|
rescue Exception => e
|
|
|
|