fix error

This commit is contained in:
邱博亞 2021-12-18 16:08:44 +08:00
parent fc7b83c958
commit 0720676cfe
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 = AsiaSyncPlugin::IV
obj.key = AsiaSyncPlugin::KEY
end
cipher.update(data)
encrypt = cipher.final()