群智熵分析报表接口调整

This commit is contained in:
xxq250 2023-03-10 14:35:20 +08:00
parent 6bb3f92973
commit a0d4f2f404
1 changed files with 1 additions and 2 deletions

View File

@ -66,7 +66,6 @@ module ProjectsHelper
jianmu_devops: jianmu_devops_code(project, user),
jianmu_devops_url: jianmu_devops_url,
cloud_ide_saas_url: cloud_ide_saas_url(user),
open_blockchain: EduSetting.get("open_blockchain_projects").to_s.split(",").include?(project.id.to_s) || EduSetting.get("open_blockchain_projects").to_s.split(",").include?(project.identifier) || EduSetting.get("open_blockchain_users").to_s.split(",").include?(user.id) || EduSetting.get("open_blockchain_users").to_s.split(",").include?(user.login),
ignore_id: project.ignore_id
}).compact
@ -182,7 +181,7 @@ module ProjectsHelper
end
def ai_shang_v3_url(project)
url = EduSetting.get("ai_shang_v3_url") || "https://entropy.ingress.isa.buaanlsde.cn"
url = EduSetting.get("ai_shang_v3_url") || "https://shang.gitlink.org.cn/v3"
case project.identifier.to_s.downcase
when nil then ""
when 'rails' then "#{url}/rails/entropy"