dev_daiao
daiao 5 years ago
parent 357761c4dd
commit 22a169740e

@ -68,7 +68,7 @@ class HacksController < ApplicationController
@hack.hack_sets.create!(hack_sets_params)
# 更新代码
if params[:hack_codes][:code] != @hack.code
hack_code_params = hack_code_params.merge(modify_time: Time.now)
hack_code_params.merge!(modify_time: Time.now)
end
@hack.hack_codes.create!(hack_code_params)
end

Loading…
Cancel
Save