From 7082e96157a9e0f088302d99704a213f1ee5a6f7 Mon Sep 17 00:00:00 2001 From: Anyon Date: Sat, 17 Mar 2018 11:57:35 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E5=A2=9E=E5=8A=A0=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=B5=8B=E8=AF=95=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/api/Tools.php | 39 ++++++++++++ application/wechat/view/api/tools/oauth.html | 66 ++++++++++++++++++++ 2 files changed, 105 insertions(+) create mode 100644 application/wechat/controller/api/Tools.php create mode 100644 application/wechat/view/api/tools/oauth.html diff --git a/application/wechat/controller/api/Tools.php b/application/wechat/controller/api/Tools.php new file mode 100644 index 000000000..a599ec77c --- /dev/null +++ b/application/wechat/controller/api/Tools.php @@ -0,0 +1,39 @@ +fetch('', ['fans' => $fans]); + } + +} \ No newline at end of file diff --git a/application/wechat/view/api/tools/oauth.html b/application/wechat/view/api/tools/oauth.html new file mode 100644 index 000000000..5801da448 --- /dev/null +++ b/application/wechat/view/api/tools/oauth.html @@ -0,0 +1,66 @@ + + + + + 微信网页授权测试 + + + + + + + + + + +
+
+
+

操作失败

+

通过网页授权获取用户资料失败,请检查权限再试!

+
+ +
+ +
+ +

{$fans.fansinfo.nickname}

+
+
用户标识
+
+
+
OPENID
+
{$fans.fansinfo.openid}
+
+
+
UNIONID
+
{$fans.fansinfo.unionid}
+
+
+
详细资料
+
+
+
性别
+
{:[1=>'男',2=>'女'][$fans.fansinfo.sex]??'未知'}
+
+
+
系统语言
+
{$fans.fansinfo.language}
+
+
+
所在区域
+
{$fans.fansinfo.country}{$fans.fansinfo.province}{$fans.fansinfo.city}
+
+ {if isset($fans.fansinfo.privilege.0)} +
+
设备网络
+
{$fans.fansinfo.privilege.0}
+
+ {/if} +
+ + \ No newline at end of file