json解析换成rails的

cs_optimize_txz
guange 9 years ago
parent eaad006d17
commit df41f7328f

@ -34,7 +34,7 @@ class SsoController < ApplicationController
pkey = OpenSSL::PKey::RSA.new(File.new(File.join(Rails.root,"config/private.key")))
content = pkey.private_decrypt(crypted_str,OpenSSL::PKey::RSA::PKCS1_PADDING)
# content = pkey.private_decrypt(crypted_str)
JSON.parser(content)
ActiveSupport::JSON.decode(content)
end
def login(id)

Loading…
Cancel
Save