Commit 52bf2cb5 by hysios

fixed incorrect argument name

parent f2c296f9
...@@ -5,7 +5,7 @@ module WeixinAuthorize ...@@ -5,7 +5,7 @@ module WeixinAuthorize
# 网站应用微信登录授权URL # 网站应用微信登录授权URL
# 文档:http://t.cn/RyZVWEY # 文档:http://t.cn/RyZVWEY
def qrcode_authorize_url(uri, scope="snsapi_login", state="web_wx_login") def qrcode_authorize_url(redirect_uri, scope="snsapi_login", state="web_wx_login")
uri = encode_url(redirect_uri) uri = encode_url(redirect_uri)
WeixinAuthorize.open_endpoint("/connect/qrconnect?appid=#{app_id}&redirect_uri=#{uri}&response_type=code&scope=#{scope}&state=#{state}#wechat_redirect") WeixinAuthorize.open_endpoint("/connect/qrconnect?appid=#{app_id}&redirect_uri=#{uri}&response_type=code&scope=#{scope}&state=#{state}#wechat_redirect")
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment