实训关卡列表问题

dev_forum
daiao 5 years ago
parent 191c2a25fa
commit 275bc3bd0d

@ -52,7 +52,7 @@ class Challenge < ApplicationRecord
# 开启挑战 # 开启挑战
def open_game user_id, shixun def open_game user_id, shixun
game = self.games.first game = self.games.where(user_id: user_id).first
if game.present? if game.present?
shixun.task_pass || game.status != 3 ? "/tasks/#{game.identifier}" : "" shixun.task_pass || game.status != 3 ? "/tasks/#{game.identifier}" : ""
else else

Loading…
Cancel
Save