From 82def0ab7ed29a830f465d392417fb719bf27140 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Tue, 19 Nov 2019 09:45:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/hacks_controller.rb | 2 ++ 1 file changed, 2 insertions(+) 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