From a560a5034cafa644a5220b31dfdb1b440913486e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cxxq250=E2=80=9D?= <“xxq250@qq.com”> Date: Fri, 29 Jul 2022 14:20:56 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20=E5=BB=BA=E6=9C=A8=E8=AE=A4=E8=AF=81cod?= =?UTF-8?q?e=E5=8A=A0=E5=AF=86=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/projects_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 17eb8b39f..60aa0592d 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -115,7 +115,7 @@ module ProjectsHelper # GET:https://ci-v3.test.jianmuhub.com/oauth2/authorize?code=${encode(密文)} def jianmu_devops_code(project, user) data = { userId: user.id, ref: project.identifier, owner: project.owner.login, timestamp: Time.now.to_i * 1000 } - aes_encrypt(data) + aes_encrypt(data.to_json) end def aes_encrypt(des_text)