|
|
|
@@ -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) |
|
|
|
|