This commit is contained in:
yuanke 2016-08-12 17:38:24 +08:00
parent 9b52c1504e
commit 1a835a25db
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ module Mobile
require "open-uri"
#如果有GET请求参数直接写在URI地址中
uri = 'https://api.weixin.qq.com/sns/userinfo?access_token='+access_token+'&openid='+openid+'&lang=zh_CN'
html_response = nil
userinfo = nil
open(uri) do |http|
userinfo = http.read
end