基本信息
源码名称:asp实现 微信登录授权(获取用户信息)
源码大小:4.54KB
文件格式:.rar
开发语言:ASP
更新时间:2019-07-23
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
<!--#include file="WxAPI.asp" -->
<%
Res = Wx.GetUserInfo
Function sex(v)
if v=1 then
sex = "男"
else
sex = "女"
end if
End Function
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>获取用户信息</title>
</head>
<body>
<p>
<%
Wx.Echo "Openid:"&Session("openid")
Wx.Echo "昵称:"&Res(0)
Wx.Echo "性别:"&sex(Res(1))
Wx.Echo "头像:<img src='"&Res(2)&"' height='50'>"
Wx.Echo "来自:"&Res(3)&"·"&Res(4)&"·"&Res(5)
%>
</p>
</body>
</html>