This commit is contained in:
parent
9b52c1504e
commit
1a835a25db
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue