mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-08-07 14:19:46 +08:00
修改代码
This commit is contained in:
parent
e45d5843c6
commit
3eb9c37eb2
@ -29,6 +29,7 @@ define(['md5'], function (SparkMD5, allowMime) {
|
||||
if (parseInt(ret.code) === 404) {
|
||||
file.xurl = ret.data.url;
|
||||
option.uploader.config.url = ret.data.server;
|
||||
option.uploader.config.data.key = ret.data.xkey;
|
||||
option.uploader.config.data.xkey = ret.data.xkey;
|
||||
option.uploader.config.data.safe = ret.data.safe;
|
||||
option.uploader.config.data.uptype = ret.data.uptype;
|
||||
|
@ -13,7 +13,7 @@ use think\Response;
|
||||
* @package app\data\controller\api
|
||||
* @example 域名请修改为自己的地址,放到网页代码合适位置
|
||||
* <meta name="referrer" content="always">
|
||||
* <script src="https://your.domain.com/data/api.wechat/oauth?mode=1"></script>
|
||||
* <script referrerpolicy="unsafe-url" src="https://your.domain.com/data/api.wechat/oauth?mode=1"></script>
|
||||
*
|
||||
* 授权模式支持两种模块,参数 mode=0 时为静默授权,mode=1 时为完整授权
|
||||
* 注意:回跳地址默认从 Header 中的 http_referer 获取,也可以传 source 参数
|
||||
@ -116,7 +116,7 @@ class Wechat extends Controller
|
||||
<div style="margin-top:30px">用户数据</div>
|
||||
<pre id="userdata">待网页授权,加载用户数据...</pre>
|
||||
|
||||
<script src="//{$this->request->host()}/data/api.wechat/oauth?mode=1"></script>
|
||||
<script referrerpolicy="unsafe-url" src="//{$this->request->host()}/data/api.wechat/oauth?mode=1"></script>
|
||||
<script>
|
||||
if(typeof window.WeChatFansInfo === 'object'){
|
||||
document.getElementById('fansdata').innerText = JSON.stringify(window.WeChatFansInfo, null, 2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user