|
|
@ -74,7 +74,7 @@ class Challenge < ApplicationRecord
|
|
|
|
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
|
|
|
|
"/api/shixuns/#{shixun.identifier}/shixun_exec"
|
|
|
|
self.position == 1 ? "/api/shixuns/#{shixun.identifier}/shixun_exec" : ""
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|