fixed 建木认证code加密生成

This commit is contained in:
“xxq250” 2022-07-29 14:20:56 +08:00
parent 34504ddc39
commit a560a5034c
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ module ProjectsHelper
# GEThttps://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)