<%
Openid = Wx.Get_Openid
Result = Wx.Get_UserInfo(Openid)
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>
<style>
img {
border: none;
border-radius: 100%;
}
</style>
</head>
<body>
<p>
<%
If Result(7) = 1 Then
Wx.Echo "openid:"&Openid
Wx.Echo "昵称:"&Result(0)
Wx.Echo "性别:"&sex(Result(1))
Wx.Echo "头像:<img src=‘"&Result(2)&"‘ height=‘50‘>"
Wx.Echo "来自:"&Result(3)&"·"&Result(4)&"·"&Result(5)
Wx.Echo "关注时间:"&DateAdd("s",Result(6),"1970-01-01 08:00:00")
Else
Wx.Echo Openid&"未关注公众号呢"
End If
%>
相关文章
- 11-202024最新修复微信公众号无限回调系统源码下载 免授权开心版
- 11-20java家政上门系统源码,App端采用uniapp开发编写,可打包H5 、微信小程序、微信公众号、Android、IOS等。-APP服务端功能主要包括:
- 11-20微信公众号接口配置验证URL
- 11-20微信公众号模板消息 access_token missing
- 11-20微信公众号-发送模板消息
- 11-20微信公众号发送模板消息
- 11-20微信公众号服务器token验证失败?
- 11-20微信公众号接入开发者模式,服务器配置Token验证
- 11-20微信公众号服务器验证Token的完整步骤
- 11-20.net mvc 微信公众号 验证微信签名