|
|
|
@ -73,9 +73,9 @@ class Challenge < ApplicationRecord
|
|
|
|
|
# 这里的identifier,status是关联了games取了games的identifier,status
|
|
|
|
|
identifier = self.identifier
|
|
|
|
|
if identifier.present?
|
|
|
|
|
shixun.task_pass || self.status != 3 ? "/tasks/#{identifier}" : ""
|
|
|
|
|
(shixun.task_pass || self.status != 3) ? "/tasks/#{identifier}" : ""
|
|
|
|
|
else
|
|
|
|
|
self.position == 1 ? "/shixuns/#{shixun.identifier}/shixun_exec.json" : ""
|
|
|
|
|
(shixun.task_pass || position == 1) ? "/shixuns/#{shixun.identifier}/shixun_exec.json" : ""
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|