Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

issues25489
cxt 5 years ago
commit 5864979814

@ -49,10 +49,10 @@ class TrustieHacksController < ApplicationController
# 报名入口 # 报名入口
def entry def entry
if @hack.hack_users.exists?(user_id: current_user) if @hack.hack_users.exists?(user_id: current_user.id)
render_error('已经报名,请勿重复操作') render_error('已经报名,请勿重复操作')
else else
@hack.hack_users.create(user_id: current_user) @hack.hack_users.create(user_id: current_user.id)
render_ok render_ok
end end
end end

Loading…
Cancel
Save