code=>params[:code]

This commit is contained in:
guange 2016-05-27 22:18:03 +08:00
parent 4137fe07f3
commit 4561bdfd0d
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ class WechatsController < ActionController::Base
def login def login
session[:wechat_code] = params[:code] if params[:code] session[:wechat_code] = params[:code] if params[:code]
openid = get_openid_from_code(code) openid = get_openid_from_code(params[:code])
@wechat_user = user_binded?(openid) @wechat_user = user_binded?(openid)
render 'wechats/login', layout: 'base_wechat' render 'wechats/login', layout: 'base_wechat'