From 55a66f0452044f4d81303e4af0c07793d00461b2 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Thu, 24 Oct 2019 14:42:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/competition_module.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/models/competition_module.rb b/app/models/competition_module.rb index 76f7610d2..d520baef6 100644 --- a/app/models/competition_module.rb +++ b/app/models/competition_module.rb @@ -8,17 +8,17 @@ class CompetitionModule < ApplicationRecord def module_url case module_type when "home" - "/competitions/#{competition.identifier}" + "/competitions/#{competition.identifier}.json" when "inform" - "/competitions/#{competition.identifier}/informs?status=1" + "/competitions/#{competition.identifier}/informs.json?status=1" when "manual" - "/competitions/#{competition.identifier}/informs?status=2" + "/competitions/#{competition.identifier}/informs.json?status=2" when "chart" - "/competitions/#{competition.identifier}/charts" + "/competitions/#{competition.identifier}/charts.json" when "enroll" - "/competitions/#{competition.identifier}/competition_teams" + "/competitions/#{competition.identifier}/competition_teams.json" else - url || "/competitions/#{competition.identifier}/md_content?md_content_id=#{competition_module_md_content&.id}" + url || "/competitions/#{competition.identifier}/md_content.json?md_content_id=#{competition_module_md_content&.id}" end end end