关卡列表接口调整

courseware
daiao 5 years ago
parent 09e81ce359
commit 3ed72cb593

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

Loading…
Cancel
Save