作者 何书鹏
1 个管道 的构建 通过 耗费 0 秒

配置文件修改

<?php
return array(
0 =>
array(
'name' => 'qq',
'title' => 'QQ',
'type' => 'array',
'content' =>
array(
'app_id' => '',
'app_secret' => '',
'scope' => 'get_user_info',
),
'value' =>
array(
'app_id' => '100000000',
'app_secret' => '123456',
'scope' => 'get_user_info',
),
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
),
1 =>
array(
'name' => 'wechat',
'title' => '微信',
'type' => 'array',
'content' =>
array(
'app_id' => '',
'app_secret' => '',
'callback' => '',
'scope' => 'snsapi_base',
),
'value' =>
array(
'app_id' => '100000000',
'app_secret' => '123456',
'scope' => 'snsapi_userinfo',
),
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
),
2 =>
array(
'name' => 'weibo',
'title' => '微博',
'type' => 'array',
'content' =>
array(
'app_id' => '',
'app_secret' => '',
'scope' => 'get_user_info',
),
'value' =>
array(
'app_id' => '100000000',
'app_secret' => '123456',
'scope' => 'get_user_info',
),
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
),
3 =>
array(
'name' => 'bindaccount',
'title' => '账号绑定',
'type' => 'radio',
'content' =>
array(
1 => '开启',
0 => '关闭',
),
'value' => '1',
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '是否开启账号绑定',
'extend' => '',
),
4 =>
array(
'name' => 'status',
'title' => '前台第三方登录开关',
'type' => 'checkbox',
'content' =>
array(
'qq' => 'QQ',
'wechat' => '微信',
'weibo' => '微博',
),
'value' => 'qq,wechat,weibo',
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '前台第三方登录的开关',
'extend' => '',
),
5 =>
array(
'name' => 'rewrite',
'title' => '伪静态',
'type' => 'array',
'content' =>
array(),
'value' =>
array(
'index/index' => '/third$',
'index/connect' => '/third/connect/[:platform]',
'index/callback' => '/third/callback/[:platform]',
'index/bind' => '/third/bind/[:platform]',
'index/unbind' => '/third/unbind/[:platform]',
),
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
),
);
return [
[
'name' => 'qq',
'title' => 'QQ',
'type' => 'array',
'content' => [
'app_id' => '',
'app_secret' => '',
'scope' => 'get_user_info',
],
'value' => [
'app_id' => '100000000',
'app_secret' => '123456',
'scope' => 'get_user_info',
],
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => 'wechat',
'title' => '微信',
'type' => 'array',
'content' => [
'app_id' => '',
'app_secret' => '',
'callback' => '',
'scope' => 'snsapi_base',
],
'value' => [
'app_id' => 'wxaa6274e233a60cc9',
'app_secret' => '9d6c51b3e744e2d239fff6a1e8451749',
'scope' => 'snsapi_userinfo',
],
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => 'weibo',
'title' => '微博',
'type' => 'array',
'content' => [
'app_id' => '',
'app_secret' => '',
'scope' => 'get_user_info',
],
'value' => [
'app_id' => '100000000',
'app_secret' => '123456',
'scope' => 'get_user_info',
],
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
[
'name' => 'bindaccount',
'title' => '账号绑定',
'type' => 'radio',
'content' => [
1 => '开启',
0 => '关闭',
],
'value' => '1',
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '是否开启账号绑定',
'extend' => '',
],
[
'name' => 'status',
'title' => '前台第三方登录开关',
'type' => 'checkbox',
'content' => [
'qq' => 'QQ',
'wechat' => '微信',
'weibo' => '微博',
],
'value' => 'qq,wechat,weibo',
'rule' => '',
'msg' => '',
'tip' => '',
'ok' => '前台第三方登录的开关',
'extend' => '',
],
[
'name' => 'rewrite',
'title' => '伪静态',
'type' => 'array',
'content' => [],
'value' => [
'index/index' => '/third$',
'index/connect' => '/third/connect/[:platform]',
'index/callback' => '/third/callback/[:platform]',
'index/bind' => '/third/bind/[:platform]',
'index/unbind' => '/third/unbind/[:platform]',
],
'rule' => 'required',
'msg' => '',
'tip' => '',
'ok' => '',
'extend' => '',
],
];
... ...
... ... @@ -258,7 +258,6 @@
</span>
</a>
<a href="javascript:;" data-id="26" class="list-group-item">礼物 <span class="tag">
<span class="label label-success pull-right noneedlogin"></span>
</span>
</a>
<a href="javascript:;" data-id="27" class="list-group-item">礼物-购买 <span class="tag">
... ... @@ -4105,7 +4104,7 @@
<div class="panel panel-default">
<div class="panel-heading" id="heading-26">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion26" href="#collapseOne26"> 礼物 <span class="text-muted">/api/user/giftList</span></a>
</h4>
</div>
... ... @@ -4132,7 +4131,7 @@
<tbody>
<tr>
<td>登录</td>
<td></td>
<td></td>
</tr>
<tr>
<td>鉴权</td>
... ... @@ -4145,59 +4144,13 @@
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
<table class="table table-hover">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必选</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>token</td>
<td>string</td>
<td></td>
<td>请求的Token</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<table class="table table-hover">
<thead>
<tr>
<th>名称</th>
<th>类型</th>
<th>必选</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>is_custom</td>
<td>string</td>
<td></td>
<td>是否自定义:0=否,1=是</td>
</tr>
<tr>
<td>gift_id</td>
<td>inter</td>
<td></td>
<td>礼物ID</td>
</tr>
<tr>
<td>pay_price</td>
<td>float</td>
<td></td>
<td>自定义金额</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel panel-default">
... ... @@ -4211,35 +4164,15 @@
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
<div class="headers">
<div class="form-group">
<label class="control-label" for="token">token</label>
<input type="string" class="form-control input-sm" id="token" required placeholder="请求的Token - Ex: " name="token">
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong>
<div class="pull-right">
<a href="javascript:" class="btn btn-xs btn-info btn-append">追加</a>
</div>
</div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/giftList" method="POST" name="form26" id="form26">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/giftList" method="GET" name="form26" id="form26">
<div class="form-group">
<label class="control-label" for="is_custom">is_custom</label>
<input type="string" class="form-control input-sm" id="is_custom" required placeholder="是否自定义:0=否,1=是" name="is_custom">
</div>
<div class="form-group">
<label class="control-label" for="gift_id">gift_id</label>
<input type="inter" class="form-control input-sm" id="gift_id" placeholder="礼物ID" name="gift_id">
</div>
<div class="form-group">
<label class="control-label" for="pay_price">pay_price</label>
<input type="float" class="form-control input-sm" id="pay_price" placeholder="自定义金额" name="pay_price">
</div>
<div class="form-group form-group-submit">
<button type="submit" class="btn btn-success send" rel="26">提交</button>
... ... @@ -4774,7 +4707,7 @@
</div>
<div class="col-md-6" align="right">
Generated on 2021-07-02 15:42:50 <a href="./" target="_blank">我的网站</a>
Generated on 2021-07-02 16:03:46 <a href="./" target="_blank">我的网站</a>
</div>
</div>
... ...