增加建木devops地址配置

This commit is contained in:
“xxq250” 2022-08-16 11:34:20 +08:00
parent f211fbaec3
commit b2af43ee2a
1 changed files with 3 additions and 4 deletions

View File

@ -64,7 +64,7 @@ module ProjectsHelper
project_language_id: project.project_language_id,
license_id: project.license_id,
jianmu_devops: jianmu_devops_code(project, user),
jianmu_devops_url: jianmu_devops_url(jianmu_devops_code(project, user)),
jianmu_devops_url: jianmu_devops_url,
ignore_id: project.ignore_id
}).compact
@ -124,9 +124,8 @@ module ProjectsHelper
end
end
def jianmu_devops_url(token)
url = EduSetting.get("jianmu_devops_url") || "https://ci-v3.test.jianmuhub.com/oauth2/authorize?code="
"#{url}#{URI.encode(token)}"
def jianmu_devops_url
EduSetting.get("jianmu_devops_url") || "https://ci-v3.test.jianmuhub.com"
end
def aes_encrypt(key, des_text)