|
|
@ -75,7 +75,7 @@ class Challenge < ApplicationRecord
|
|
|
|
if identifier.present?
|
|
|
|
if identifier.present?
|
|
|
|
shixun.task_pass || self.status != 3 ? "/tasks/#{identifier}" : ""
|
|
|
|
shixun.task_pass || self.status != 3 ? "/tasks/#{identifier}" : ""
|
|
|
|
else
|
|
|
|
else
|
|
|
|
self.position == 1 ? "/api/shixuns/#{shixun.identifier}/shixun_exec" : ""
|
|
|
|
self.position == 1 ? "/shixuns/#{shixun.identifier}/shixun_exec.json" : ""
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|