problem_set
cxt 5 years ago
parent 4f0b2eb2bb
commit 9f5c54a063

@ -20,7 +20,7 @@ class Competitions::CreatePersonalTeamService < ApplicationService
raise Error, '您已报名该竞赛' if enrolled && multiple_limited
ActiveRecord::Base.transaction do
team = competition.competition_teams.create!(name: user.show_name, user_id: user.id)
team = competition.competition_teams.create!(name: user.real_name, user_id: user.id)
team.team_members.create!(competition_id: competition, user_id: user.id, role: 1, is_teacher: is_teacher)
end
end

@ -10,7 +10,9 @@
<span class="flex-1">基础设置</span>
</div>
<div class="card-body row">
<div class="container">
</div>
</div>
</div>

Loading…
Cancel
Save