|
|
|
@ -62,9 +62,9 @@ class HacksController < ApplicationController
|
|
|
|
|
ItemBank.create!(new_item_params)
|
|
|
|
|
end
|
|
|
|
|
render_ok({identifier: hack.identifier})
|
|
|
|
|
rescue Exception => e
|
|
|
|
|
rescue => e
|
|
|
|
|
logger.error("########create_hack_error: #{e.message}")
|
|
|
|
|
render_error("创建失败")
|
|
|
|
|
render_error("创建失败: #{e.message}")
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
@ -96,7 +96,7 @@ class HacksController < ApplicationController
|
|
|
|
|
render_ok
|
|
|
|
|
rescue Exception => e
|
|
|
|
|
logger.error("####update_hack_error: #{e.message}")
|
|
|
|
|
render_error("更新失败")
|
|
|
|
|
render_error("更新失败: #{e.message}")
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|