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