fix error

This commit is contained in:
邱博亞 2021-12-18 16:03:44 +08:00
parent c6884b2db2
commit fc7b83c958
1 changed files with 2 additions and 2 deletions

View File

@ -377,8 +377,8 @@ namespace :sync_asia_personal_plugins do
@read_timeout = 300
data = "id=#{user_id}"
cipher = OpenSSL::Cipher::Cipher.new("des").encrypt.tap do |obj|
obj.iv = IV
obj.key = KEY
obj.iv = ::IV
obj.key = ::KEY
end
cipher.update(data)
encrypt = cipher.final()