diff --git a/app/controllers/hacks_controller.rb b/app/controllers/hacks_controller.rb index b6eb2b33c..9fa8e26e3 100644 --- a/app/controllers/hacks_controller.rb +++ b/app/controllers/hacks_controller.rb @@ -65,6 +65,8 @@ class HacksController < ApplicationController param_update_sets params[:update_hack_sets], set_ids # 新建 @hack.hack_sets.create!(hack_sets_params) + # 更新代码 + @hack.hack_codes.create!(hack_code_params) end render_ok rescue Exception => e