school不用Base64解码,两边都是utf8

This commit is contained in:
guange 2016-05-17 15:56:06 +08:00
parent 70ff3e2c19
commit 1767e1200d
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ class Sso < ActiveRecord::Base
sso.openid = opt["openid"]
sso.email = opt["email"]
sso.password = opt["password"]
sso.school = Base64.decode64(opt["school"]).force_encoding('utf-8')
sso.school = opt["school"]
sso.sex = opt["sex"]