作者 郭盛
1 个管道 的构建 通过 耗费 4 秒

修改我的老师后台模块

... ... @@ -101,6 +101,10 @@ class Teacher extends Backend
$params = $this->request->post("row/a");
if ($params) {
$params = $this->preExcludeFields($params);
$params['level'] = ($params['help_num'] * 5)/$params['help_num'];
$result = false;
Db::startTrans();
try {
... ...
... ... @@ -126,12 +126,12 @@
<input id="c-help_num" class="form-control" name="row[help_num]" type="number" value="{$row.help_num|htmlentities}">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Level')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-level" class="form-control" name="row[level]" type="number" value="{$row.level|htmlentities}">
</div>
</div>
<!--<div class="form-group">-->
<!--<label class="control-label col-xs-12 col-sm-2">{:__('Level')}:</label>-->
<!--<div class="col-xs-12 col-sm-8">-->
<!--<input id="c-level" class="form-control" name="row[level]" type="number" value="{$row.level|htmlentities}">-->
<!--</div>-->
<!--</div>-->
<div class="form-group layer-footer">
<label class="control-label col-xs-12 col-sm-2"></label>
<div class="col-xs-12 col-sm-8">
... ...
... ... @@ -83,4 +83,25 @@ class Index extends Api
$this->error('类型错误');
}
}
/**
* @ApiTitle (首页今日推荐列表)
* @ApiSummary (首页今日推荐列表)
* @ApiMethod (POST)
* @ApiRoute (/api/index/today)
*
* @ApiReturn({
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"id": //老师id,
"title"://标题,
}
})
*/
public function today()
{
}
}
... ...
... ... @@ -156,22 +156,23 @@
<div class="child collapse" id="首页接口">
<a href="javascript:;" data-id="7" class="list-group-item">首页轮播图列表</a>
<a href="javascript:;" data-id="8" class="list-group-item">首页咨询分类列表</a>
<a href="javascript:;" data-id="9" class="list-group-item">首页今日推荐列表</a>
</div>
<a href="#老师接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">老师接口 <i class="fa fa-caret-down"></i></a>
<div class="child collapse" id="老师接口">
<a href="javascript:;" data-id="9" class="list-group-item">成为老师表单提交</a>
<a href="javascript:;" data-id="10" class="list-group-item">新赠擅长领域</a>
<a href="javascript:;" data-id="11" class="list-group-item">擅长领域详情</a>
<a href="javascript:;" data-id="12" class="list-group-item">编辑擅长领域</a>
<a href="javascript:;" data-id="13" class="list-group-item">删除擅长领域</a>
<a href="javascript:;" data-id="10" class="list-group-item">成为老师表单提交</a>
<a href="javascript:;" data-id="11" class="list-group-item">新赠擅长领域</a>
<a href="javascript:;" data-id="12" class="list-group-item">擅长领域详情</a>
<a href="javascript:;" data-id="13" class="list-group-item">编辑擅长领域</a>
<a href="javascript:;" data-id="14" class="list-group-item">删除擅长领域</a>
</div>
<a href="#登录接口" class="list-group-item" data-toggle="collapse" data-parent="#sidebar">登录接口 <i class="fa fa-caret-down"></i></a>
<div class="child collapse" id="登录接口">
<a href="javascript:;" data-id="14" class="list-group-item">获取sessionKey和openid</a>
<a href="javascript:;" data-id="15" class="list-group-item"></a>
<a href="javascript:;" data-id="16" class="list-group-item">小程序登录注册</a>
<a href="javascript:;" data-id="17" class="list-group-item">通过code获取token</a>
<a href="javascript:;" data-id="18" class="list-group-item"></a>
<a href="javascript:;" data-id="15" class="list-group-item">获取sessionKey和openid</a>
<a href="javascript:;" data-id="16" class="list-group-item"></a>
<a href="javascript:;" data-id="17" class="list-group-item">小程序登录注册</a>
<a href="javascript:;" data-id="18" class="list-group-item">通过code获取token</a>
<a href="javascript:;" data-id="19" class="list-group-item"></a>
</div>
</div>
</div>
... ... @@ -1318,13 +1319,11 @@
</div>
</div>
</div>
<h2>老师接口</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-9">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion9" href="#collapseOne9"> 成为老师表单提交 <span class="text-muted">/api/teacher/become</span></a>
<a data-toggle="collapse" data-parent="#accordion9" href="#collapseOne9"> 首页今日推荐列表 <span class="text-muted">/api/index/today</span></a>
</h4>
</div>
<div id="collapseOne9" class="panel-collapse collapse">
... ... @@ -1342,6 +1341,108 @@
<div class="tab-pane active" id="info9">
<div class="well">
首页今日推荐列表 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>正文</strong></div>
<div class="panel-body">
</div>
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox9">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/index/today" method="POST" name="form9" id="form9">
<div class="form-group">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="9">提交</button>
<button type="reset" class="btn btn-info" rel="9">重置</button>
</div>
</form>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>响应输出</strong></div>
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers9"></pre>
<pre id="response9"></pre>
</div>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"><strong>返回参数</strong></div>
<div class="panel-body">
</div>
</div>
</div>
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample9">
<div class="row">
<div class="col-md-12">
<pre id="sample_response9">{
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"id": //老师id,
"title"://标题,
}
}</pre>
</div>
</div>
</div><!-- #sample -->
</div><!-- .tab-content -->
</div>
</div>
</div>
<h2>老师接口</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-10">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion10" href="#collapseOne10"> 成为老师表单提交 <span class="text-muted">/api/teacher/become</span></a>
</h4>
</div>
<div id="collapseOne10" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab10">
<li class="active"><a href="#info10" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox10" data-toggle="tab">在线测试</a></li>
<li><a href="#sample10" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info10">
<div class="well">
成为老师表单提交 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
... ... @@ -1480,7 +1581,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox9">
<div class="tab-pane" id="sandbox10">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -1497,7 +1598,7 @@
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/become" method="POST" name="form9" id="form9">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/become" method="POST" name="form10" id="form10">
<div class="form-group">
<label class="control-label" for="name">name</label>
<input type="string" class="form-control input-sm" id="name" required placeholder="真实姓名" name="name">
... ... @@ -1559,8 +1660,8 @@
<input type="string" class="form-control input-sm" id="territory_id" required placeholder="擅长领域ID" name="territory_id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="9">提交</button>
<button type="reset" class="btn btn-info" rel="9">重置</button>
<button type="submit" class="btn btn-success send" rel="10">提交</button>
<button type="reset" class="btn btn-info" rel="10">重置</button>
</div>
</form>
</div>
... ... @@ -1570,8 +1671,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers9"></pre>
<pre id="response9"></pre>
<pre id="response_headers10"></pre>
<pre id="response10"></pre>
</div>
</div>
</div>
... ... @@ -1586,10 +1687,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample9">
<div class="tab-pane" id="sample10">
<div class="row">
<div class="col-md-12">
<pre id="sample_response9">{
<pre id="sample_response10">{
"code": 1,
"msg": "成功",
"time": "1571492001",
... ... @@ -1606,26 +1707,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-10">
<div class="panel-heading" id="heading-11">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion10" href="#collapseOne10"> 新赠擅长领域 <span class="text-muted">/api/teacher/index</span></a>
<a data-toggle="collapse" data-parent="#accordion11" href="#collapseOne11"> 新赠擅长领域 <span class="text-muted">/api/teacher/index</span></a>
</h4>
</div>
<div id="collapseOne10" class="panel-collapse collapse">
<div id="collapseOne11" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab10">
<li class="active"><a href="#info10" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox10" data-toggle="tab">在线测试</a></li>
<li><a href="#sample10" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab11">
<li class="active"><a href="#info11" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox11" data-toggle="tab">在线测试</a></li>
<li><a href="#sample11" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info10">
<div class="tab-pane active" id="info11">
<div class="well">
新赠擅长领域 </div>
<div class="panel panel-default">
... ... @@ -1693,7 +1794,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox10">
<div class="tab-pane" id="sandbox11">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -1710,7 +1811,7 @@
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/index" method="POST" name="form10" id="form10">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/index" method="POST" name="form11" id="form11">
<div class="form-group">
<label class="control-label" for="contype_id">contype_id</label>
<input type="int" class="form-control input-sm" id="contype_id" required placeholder="咨询分类ID" name="contype_id">
... ... @@ -1724,8 +1825,8 @@
<input type="string" class="form-control input-sm" id="content" required placeholder="领域优势内容" name="content">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="10">提交</button>
<button type="reset" class="btn btn-info" rel="10">重置</button>
<button type="submit" class="btn btn-success send" rel="11">提交</button>
<button type="reset" class="btn btn-info" rel="11">重置</button>
</div>
</form>
</div>
... ... @@ -1735,8 +1836,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers10"></pre>
<pre id="response10"></pre>
<pre id="response_headers11"></pre>
<pre id="response11"></pre>
</div>
</div>
</div>
... ... @@ -1751,10 +1852,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample10">
<div class="tab-pane" id="sample11">
<div class="row">
<div class="col-md-12">
<pre id="sample_response10">{
<pre id="sample_response11">{
"code": 1,
"msg": "成功",
"time": "1571492001",
... ... @@ -1771,26 +1872,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-11">
<div class="panel-heading" id="heading-12">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion11" href="#collapseOne11"> 擅长领域详情 <span class="text-muted">/api/teacher/info</span></a>
<a data-toggle="collapse" data-parent="#accordion12" href="#collapseOne12"> 擅长领域详情 <span class="text-muted">/api/teacher/info</span></a>
</h4>
</div>
<div id="collapseOne11" class="panel-collapse collapse">
<div id="collapseOne12" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab11">
<li class="active"><a href="#info11" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox11" data-toggle="tab">在线测试</a></li>
<li><a href="#sample11" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab12">
<li class="active"><a href="#info12" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox12" data-toggle="tab">在线测试</a></li>
<li><a href="#sample12" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info11">
<div class="tab-pane active" id="info12">
<div class="well">
擅长领域详情 </div>
<div class="panel panel-default">
... ... @@ -1846,7 +1947,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox11">
<div class="tab-pane" id="sandbox12">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -1863,14 +1964,14 @@
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/info" method="POST" name="form11" id="form11">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/info" method="POST" name="form12" id="form12">
<div class="form-group">
<label class="control-label" for="id">id</label>
<input type="int" class="form-control input-sm" id="id" required placeholder="擅长领域ID" name="id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="11">提交</button>
<button type="reset" class="btn btn-info" rel="11">重置</button>
<button type="submit" class="btn btn-success send" rel="12">提交</button>
<button type="reset" class="btn btn-info" rel="12">重置</button>
</div>
</form>
</div>
... ... @@ -1880,8 +1981,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers11"></pre>
<pre id="response11"></pre>
<pre id="response_headers12"></pre>
<pre id="response12"></pre>
</div>
</div>
</div>
... ... @@ -1896,10 +1997,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample11">
<div class="tab-pane" id="sample12">
<div class="row">
<div class="col-md-12">
<pre id="sample_response11">{
<pre id="sample_response12">{
"code": 1,
"msg": "成功",
"time": "1571492001",
... ... @@ -1919,26 +2020,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-12">
<div class="panel-heading" id="heading-13">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion12" href="#collapseOne12"> 编辑擅长领域 <span class="text-muted">/api/teacher/upd</span></a>
<a data-toggle="collapse" data-parent="#accordion13" href="#collapseOne13"> 编辑擅长领域 <span class="text-muted">/api/teacher/upd</span></a>
</h4>
</div>
<div id="collapseOne12" class="panel-collapse collapse">
<div id="collapseOne13" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab12">
<li class="active"><a href="#info12" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox12" data-toggle="tab">在线测试</a></li>
<li><a href="#sample12" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab13">
<li class="active"><a href="#info13" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox13" data-toggle="tab">在线测试</a></li>
<li><a href="#sample13" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info12">
<div class="tab-pane active" id="info13">
<div class="well">
编辑擅长领域 </div>
<div class="panel panel-default">
... ... @@ -2012,7 +2113,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox12">
<div class="tab-pane" id="sandbox13">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -2029,7 +2130,7 @@
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/upd" method="POST" name="form12" id="form12">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/upd" method="POST" name="form13" id="form13">
<div class="form-group">
<label class="control-label" for="id">id</label>
<input type="int" class="form-control input-sm" id="id" required placeholder="擅长领域ID" name="id">
... ... @@ -2047,8 +2148,8 @@
<input type="string" class="form-control input-sm" id="content" required placeholder="领域优势内容" name="content">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="12">提交</button>
<button type="reset" class="btn btn-info" rel="12">重置</button>
<button type="submit" class="btn btn-success send" rel="13">提交</button>
<button type="reset" class="btn btn-info" rel="13">重置</button>
</div>
</form>
</div>
... ... @@ -2058,8 +2159,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers12"></pre>
<pre id="response12"></pre>
<pre id="response_headers13"></pre>
<pre id="response13"></pre>
</div>
</div>
</div>
... ... @@ -2074,10 +2175,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample12">
<div class="tab-pane" id="sample13">
<div class="row">
<div class="col-md-12">
<pre id="sample_response12">{
<pre id="sample_response13">{
"code": 1,
"msg": "成功",
"time": "1571492001",
... ... @@ -2094,26 +2195,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-13">
<div class="panel-heading" id="heading-14">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion13" href="#collapseOne13"> 删除擅长领域 <span class="text-muted">/api/teacher/del</span></a>
<a data-toggle="collapse" data-parent="#accordion14" href="#collapseOne14"> 删除擅长领域 <span class="text-muted">/api/teacher/del</span></a>
</h4>
</div>
<div id="collapseOne13" class="panel-collapse collapse">
<div id="collapseOne14" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab13">
<li class="active"><a href="#info13" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox13" data-toggle="tab">在线测试</a></li>
<li><a href="#sample13" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab14">
<li class="active"><a href="#info14" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox14" data-toggle="tab">在线测试</a></li>
<li><a href="#sample14" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info13">
<div class="tab-pane active" id="info14">
<div class="well">
删除擅长领域 </div>
<div class="panel panel-default">
... ... @@ -2169,7 +2270,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox13">
<div class="tab-pane" id="sandbox14">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -2186,14 +2287,14 @@
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/del" method="POST" name="form13" id="form13">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/del" method="POST" name="form14" id="form14">
<div class="form-group">
<label class="control-label" for="id">id</label>
<input type="int" class="form-control input-sm" id="id" required placeholder="擅长领域ID" name="id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="13">提交</button>
<button type="reset" class="btn btn-info" rel="13">重置</button>
<button type="submit" class="btn btn-success send" rel="14">提交</button>
<button type="reset" class="btn btn-info" rel="14">重置</button>
</div>
</form>
</div>
... ... @@ -2203,8 +2304,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers13"></pre>
<pre id="response13"></pre>
<pre id="response_headers14"></pre>
<pre id="response14"></pre>
</div>
</div>
</div>
... ... @@ -2219,10 +2320,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample13">
<div class="tab-pane" id="sample14">
<div class="row">
<div class="col-md-12">
<pre id="sample_response13">{
<pre id="sample_response14">{
"code": 1,
"msg": "成功",
"time": "1571492001",
... ... @@ -2240,26 +2341,26 @@
<h2>登录接口</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-14">
<div class="panel-heading" id="heading-15">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion14" href="#collapseOne14"> 获取sessionKey和openid <span class="text-muted">/api/user/getSessionKey</span></a>
<a data-toggle="collapse" data-parent="#accordion15" href="#collapseOne15"> 获取sessionKey和openid <span class="text-muted">/api/user/getSessionKey</span></a>
</h4>
</div>
<div id="collapseOne14" class="panel-collapse collapse">
<div id="collapseOne15" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab14">
<li class="active"><a href="#info14" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox14" data-toggle="tab">在线测试</a></li>
<li><a href="#sample14" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab15">
<li class="active"><a href="#info15" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox15" data-toggle="tab">在线测试</a></li>
<li><a href="#sample15" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info14">
<div class="tab-pane active" id="info15">
<div class="well">
获取sessionKey和openid </div>
<div class="panel panel-default">
... ... @@ -2298,20 +2399,20 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox14">
<div class="tab-pane" id="sandbox15">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/getSessionKey" method="POST" name="form14" id="form14">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/getSessionKey" method="POST" name="form15" id="form15">
<div class="form-group">
<label class="control-label" for="code">code</label>
<input type="string" class="form-control input-sm" id="code" required placeholder="小程序code" name="code">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="14">提交</button>
<button type="reset" class="btn btn-info" rel="14">重置</button>
<button type="submit" class="btn btn-success send" rel="15">提交</button>
<button type="reset" class="btn btn-info" rel="15">重置</button>
</div>
</form>
</div>
... ... @@ -2321,8 +2422,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers14"></pre>
<pre id="response14"></pre>
<pre id="response_headers15"></pre>
<pre id="response15"></pre>
</div>
</div>
</div>
... ... @@ -2337,10 +2438,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample14">
<div class="tab-pane" id="sample15">
<div class="row">
<div class="col-md-12">
<pre id="sample_response14">{
<pre id="sample_response15">{
"code": 1,
"msg": "获取成功",
"time": "1553839125",
... ... @@ -2358,26 +2459,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-15">
<div class="panel-heading" id="heading-16">
<h4 class="panel-title">
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion15" href="#collapseOne15"> <span class="text-muted">/api/user/http_get</span></a>
<a data-toggle="collapse" data-parent="#accordion16" href="#collapseOne16"> <span class="text-muted">/api/user/http_get</span></a>
</h4>
</div>
<div id="collapseOne15" class="panel-collapse collapse">
<div id="collapseOne16" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab15">
<li class="active"><a href="#info15" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox15" data-toggle="tab">在线测试</a></li>
<li><a href="#sample15" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab16">
<li class="active"><a href="#info16" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox16" data-toggle="tab">在线测试</a></li>
<li><a href="#sample16" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info15">
<div class="tab-pane active" id="info16">
<div class="well">
</div>
<div class="panel panel-default">
... ... @@ -2399,19 +2500,19 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox15">
<div class="tab-pane" id="sandbox16">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/http_get" method="get" name="form15" id="form15">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/http_get" method="get" name="form16" id="form16">
<div class="form-group">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="15">提交</button>
<button type="reset" class="btn btn-info" rel="15">重置</button>
<button type="submit" class="btn btn-success send" rel="16">提交</button>
<button type="reset" class="btn btn-info" rel="16">重置</button>
</div>
</form>
</div>
... ... @@ -2421,8 +2522,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers15"></pre>
<pre id="response15"></pre>
<pre id="response_headers16"></pre>
<pre id="response16"></pre>
</div>
</div>
</div>
... ... @@ -2437,10 +2538,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample15">
<div class="tab-pane" id="sample16">
<div class="row">
<div class="col-md-12">
<pre id="sample_response15"></pre>
<pre id="sample_response16"></pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -2450,26 +2551,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-16">
<div class="panel-heading" id="heading-17">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion16" href="#collapseOne16"> 小程序登录注册 <span class="text-muted">/api/user/login</span></a>
<a data-toggle="collapse" data-parent="#accordion17" href="#collapseOne17"> 小程序登录注册 <span class="text-muted">/api/user/login</span></a>
</h4>
</div>
<div id="collapseOne16" class="panel-collapse collapse">
<div id="collapseOne17" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab16">
<li class="active"><a href="#info16" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox16" data-toggle="tab">在线测试</a></li>
<li><a href="#sample16" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab17">
<li class="active"><a href="#info17" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox17" data-toggle="tab">在线测试</a></li>
<li><a href="#sample17" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info16">
<div class="tab-pane active" id="info17">
<div class="well">
小程序登录注册 </div>
<div class="panel panel-default">
... ... @@ -2526,13 +2627,13 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox16">
<div class="tab-pane" id="sandbox17">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/login" method="POST" name="form16" id="form16">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/login" method="POST" name="form17" id="form17">
<div class="form-group">
<label class="control-label" for="openid">openid</label>
<input type="string" class="form-control input-sm" id="openid" required placeholder="openid" name="openid">
... ... @@ -2550,8 +2651,8 @@
<input type="string" class="form-control input-sm" id="iv" required placeholder="iv" name="iv">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="16">提交</button>
<button type="reset" class="btn btn-info" rel="16">重置</button>
<button type="submit" class="btn btn-success send" rel="17">提交</button>
<button type="reset" class="btn btn-info" rel="17">重置</button>
</div>
</form>
</div>
... ... @@ -2561,8 +2662,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers16"></pre>
<pre id="response16"></pre>
<pre id="response_headers17"></pre>
<pre id="response17"></pre>
</div>
</div>
</div>
... ... @@ -2577,10 +2678,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample16">
<div class="tab-pane" id="sample17">
<div class="row">
<div class="col-md-12">
<pre id="sample_response16">{
<pre id="sample_response17">{
"code": 1,
"msg": "登陆成功",
"time": "1553839125",
... ... @@ -2597,26 +2698,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-17">
<div class="panel-heading" id="heading-18">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion17" href="#collapseOne17"> 通过code获取token <span class="text-muted">/api/user/getToken</span></a>
<a data-toggle="collapse" data-parent="#accordion18" href="#collapseOne18"> 通过code获取token <span class="text-muted">/api/user/getToken</span></a>
</h4>
</div>
<div id="collapseOne17" class="panel-collapse collapse">
<div id="collapseOne18" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab17">
<li class="active"><a href="#info17" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox17" data-toggle="tab">在线测试</a></li>
<li><a href="#sample17" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab18">
<li class="active"><a href="#info18" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox18" data-toggle="tab">在线测试</a></li>
<li><a href="#sample18" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info17">
<div class="tab-pane active" id="info18">
<div class="well">
通过code获取token </div>
<div class="panel panel-default">
... ... @@ -2655,20 +2756,20 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox17">
<div class="tab-pane" id="sandbox18">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/getToken" method="POST" name="form17" id="form17">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/getToken" method="POST" name="form18" id="form18">
<div class="form-group">
<label class="control-label" for="code">code</label>
<input type="string" class="form-control input-sm" id="code" required placeholder="code" name="code">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="17">提交</button>
<button type="reset" class="btn btn-info" rel="17">重置</button>
<button type="submit" class="btn btn-success send" rel="18">提交</button>
<button type="reset" class="btn btn-info" rel="18">重置</button>
</div>
</form>
</div>
... ... @@ -2678,8 +2779,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers17"></pre>
<pre id="response17"></pre>
<pre id="response_headers18"></pre>
<pre id="response18"></pre>
</div>
</div>
</div>
... ... @@ -2694,10 +2795,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample17">
<div class="tab-pane" id="sample18">
<div class="row">
<div class="col-md-12">
<pre id="sample_response17">{
<pre id="sample_response18">{
"code": 1,
"msg": "SUCCESS",
"time": "1553839125",
... ... @@ -2714,26 +2815,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-18">
<div class="panel-heading" id="heading-19">
<h4 class="panel-title">
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion18" href="#collapseOne18"> <span class="text-muted">/api/user/member</span></a>
<a data-toggle="collapse" data-parent="#accordion19" href="#collapseOne19"> <span class="text-muted">/api/user/member</span></a>
</h4>
</div>
<div id="collapseOne18" class="panel-collapse collapse">
<div id="collapseOne19" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab18">
<li class="active"><a href="#info18" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox18" data-toggle="tab">在线测试</a></li>
<li><a href="#sample18" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab19">
<li class="active"><a href="#info19" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox19" data-toggle="tab">在线测试</a></li>
<li><a href="#sample19" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info18">
<div class="tab-pane active" id="info19">
<div class="well">
</div>
<div class="panel panel-default">
... ... @@ -2755,19 +2856,19 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox18">
<div class="tab-pane" id="sandbox19">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/member" method="get" name="form18" id="form18">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/member" method="get" name="form19" id="form19">
<div class="form-group">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="18">提交</button>
<button type="reset" class="btn btn-info" rel="18">重置</button>
<button type="submit" class="btn btn-success send" rel="19">提交</button>
<button type="reset" class="btn btn-info" rel="19">重置</button>
</div>
</form>
</div>
... ... @@ -2777,8 +2878,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers18"></pre>
<pre id="response18"></pre>
<pre id="response_headers19"></pre>
<pre id="response19"></pre>
</div>
</div>
</div>
... ... @@ -2793,10 +2894,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample18">
<div class="tab-pane" id="sample19">
<div class="row">
<div class="col-md-12">
<pre id="sample_response18"></pre>
<pre id="sample_response19"></pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -2811,7 +2912,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-01-10 17:18:37 </div>
Generated on 2020-01-10 19:00:07 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...