开启关卡问题

schedule_job
daiao 5 years ago
parent 073837af61
commit a479ce56a8

@ -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

Loading…
Cancel
Save