|
|
@ -68,7 +68,7 @@ class HacksController < ApplicationController
|
|
|
|
@hack.hack_sets.create!(hack_sets_params)
|
|
|
|
@hack.hack_sets.create!(hack_sets_params)
|
|
|
|
# 更新代码
|
|
|
|
# 更新代码
|
|
|
|
if params[:hack_codes][:code] != @hack.code
|
|
|
|
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
|
|
|
|
end
|
|
|
|
@hack.hack_codes.create!(hack_code_params)
|
|
|
|
@hack.hack_codes.create!(hack_code_params)
|
|
|
|
end
|
|
|
|
end
|
|
|
|