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

修改评价详情

... ... @@ -118,10 +118,9 @@ class Order extends Api
if(empty($order)){
$this->error('查询为空');
}
// if($order['status'] != 1){
// $this->error('订单状态不合法');
// }
if($order['status'] != 1){
$this->error('订单状态不合法');
}
//微信支付
$openid = $this->getOpenId();
$pay = new WeixinPay();
... ...
... ... @@ -46,17 +46,18 @@ class Pay extends Api
// 使用通知里的 "微信支付订单号" 或者 "商户订单号" 去自己的数据库找到订单
$out_trade_no=$notify->out_trade_no;
$order = Db::name('order')->where(['num'=>$out_trade_no])->find();
if (!$order) { // 如果订单不存在
return 'Order not exist.'; // 告诉微信,我已经处理完了,订单没找到,别再通知我了
}
// 如果订单存在
// 检查订单是否已经更新过支付状态
if ($order['status'] != 1) { // 判断是否已经支付
return true; // 已经支付成功了就不再更新了
}
//判断用户是否有邀请人
$invite = Db::name('user')->where('id',$order['user_id'])->find();
if(empty($invite['invite_id'])){
if (!$order) { // 如果订单不存在
return 'Order not exist.'; // 告诉微信,我已经处理完了,订单没找到,别再通知我了
}
// 如果订单存在
// 检查订单是否已经更新过支付状态
if ($order['status'] != 1) { // 判断是否已经支付
return true; // 已经支付成功了就不再更新了
}
// 用户是否支付成功
if ($successful) {
Db::startTrans();
... ... @@ -76,14 +77,6 @@ class Pay extends Api
$is_one = Db::name('order')->where('user_id',$order['user_id'])->where('status',2)->find();
if(empty($is_one)){
if (!$order) { // 如果订单不存在
return 'Order not exist.'; // 告诉微信,我已经处理完了,订单没找到,别再通知我了
}
// 如果订单存在
// 检查订单是否已经更新过支付状态
if ($order['status'] != 1) { // 判断是否已经支付
return true; // 已经支付成功了就不再更新了
}
// 用户是否支付成功
if ($successful) {
Db::startTrans();
... ... @@ -105,14 +98,6 @@ class Pay extends Api
Db::commit();
return true; // 返回处理完成
}else{
if (!$order) { // 如果订单不存在
return 'Order not exist.'; // 告诉微信,我已经处理完了,订单没找到,别再通知我了
}
// 如果订单存在
// 检查订单是否已经更新过支付状态
if ($order['status'] != 1) { // 判断是否已经支付
return true; // 已经支付成功了就不再更新了
}
// 用户是否支付成功
if ($successful) {
Db::startTrans();
... ...
... ... @@ -10,6 +10,7 @@ namespace app\api\controller;
use app\common\controller\Api;
use function Qiniu\entry;
use think\Db;
use think\Validate;
... ... @@ -429,6 +430,51 @@ class Teacher extends Api
}
}
/**
* @ApiTitle (评价详情)
* @ApiSummary (评价详情)
* @ApiMethod (POST)
* @ApiRoute (/api/teacher/pingDetail)
*
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
*
* @ApiParams (name="order_id", type="int", required=true, description="订单ID")
*
* @ApiReturn({
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"id": //评价id,
"user_id"://用户ID
"teacher_id"://老师ID
"order_id"://订单ID
"service"://服务态度评分
"ability"://专业能力评分
"effect"://解决效果评分
"content"://评论内容
"desc"://平台建议
"createtime"://评价时间
}
})
*/
public function pingDetail()
{
$user_id = $this->getUserId();
$id = $this->request->param('order_id');
if(empty($id)){
$this->error('缺少必要参数');
}
$data = Db::name('comment')
->where('user_id',$user_id)
->where('order_id',$id)
->find();
$data['createtime'] = date('Y-m-d H:i:s',$data['createtime']);
}
/**
* @ApiTitle (投诉老师)
* @ApiSummary (投诉老师)
... ...
... ... @@ -263,21 +263,21 @@ class User extends Api
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
*
* @ApiReturn({
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"nickname"://昵称
"avatar"://头像
"identity"://身份(1学生2老师)
"underway"://进行中的订单数
"finish"://已完成的订单数
"after"://售后的订单数
"summarize"://待总结的订单数
"jiesuan"://结算中的订单数
}
})
*/
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"nickname"://昵称
"avatar"://头像
"identity"://身份(1学生2老师)
"underway"://进行中的订单数
"finish"://已完成的订单数
"after"://售后的订单数
"summarize"://待总结的订单数
"jiesuan"://结算中的订单数
}
})
*/
public function judge()
{
$user_id = $this->getUserId();
... ...
... ... @@ -190,17 +190,18 @@
<a href="javascript:;" data-id="31" class="list-group-item">编辑擅长领域</a>
<a href="javascript:;" data-id="32" class="list-group-item">删除擅长领域</a>
<a href="javascript:;" data-id="33" class="list-group-item">评价老师</a>
<a href="javascript:;" data-id="34" class="list-group-item">投诉老师</a>
<a href="javascript:;" data-id="35" class="list-group-item">投诉详情</a>
<a href="javascript:;" data-id="36" class="list-group-item">老师总结</a>
<a href="javascript:;" data-id="34" class="list-group-item">评价详情</a>
<a href="javascript:;" data-id="35" class="list-group-item">投诉老师</a>
<a href="javascript:;" data-id="36" class="list-group-item">投诉详情</a>
<a href="javascript:;" data-id="37" 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="37" class="list-group-item">获取sessionKey和openid</a>
<a href="javascript:;" data-id="38" class="list-group-item"></a>
<a href="javascript:;" data-id="39" class="list-group-item">小程序登录注册</a>
<a href="javascript:;" data-id="40" class="list-group-item">通过code获取token</a>
<a href="javascript:;" data-id="41" class="list-group-item">判断用户身份</a>
<a href="javascript:;" data-id="38" class="list-group-item">获取sessionKey和openid</a>
<a href="javascript:;" data-id="39" class="list-group-item"></a>
<a href="javascript:;" data-id="40" class="list-group-item">小程序登录注册</a>
<a href="javascript:;" data-id="41" class="list-group-item">通过code获取token</a>
<a href="javascript:;" data-id="42" class="list-group-item">判断用户身份</a>
</div>
</div>
</div>
... ... @@ -5401,7 +5402,7 @@
<div class="panel-heading" id="heading-34">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion34" href="#collapseOne34"> 投诉老师 <span class="text-muted">/api/teacher/complaint</span></a>
<a data-toggle="collapse" data-parent="#accordion34" href="#collapseOne34"> 评价详情 <span class="text-muted">/api/teacher/pingDetail</span></a>
</h4>
</div>
<div id="collapseOne34" class="panel-collapse collapse">
... ... @@ -5419,6 +5420,160 @@
<div class="tab-pane active" id="info34">
<div class="well">
评价详情 </div>
<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>order_id</td>
<td>int</td>
<td></td>
<td>订单ID</td>
</tr>
</tbody>
</table>
</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="sandbox34">
<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>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/pingDetail" method="POST" name="form34" id="form34">
<div class="form-group">
<label class="control-label" for="order_id">order_id</label>
<input type="int" class="form-control input-sm" id="order_id" required placeholder="订单ID" name="order_id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="34">提交</button>
<button type="reset" class="btn btn-info" rel="34">重置</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_headers34"></pre>
<pre id="response34"></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="sample34">
<div class="row">
<div class="col-md-12">
<pre id="sample_response34">{
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"id": //评价id,
"user_id"://用户ID
"teacher_id"://老师ID
"order_id"://订单ID
"service"://服务态度评分
"ability"://专业能力评分
"effect"://解决效果评分
"content"://评论内容
"desc"://平台建议
"createtime"://评价时间
}
}</pre>
</div>
</div>
</div><!-- #sample -->
</div><!-- .tab-content -->
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-35">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion35" href="#collapseOne35"> 投诉老师 <span class="text-muted">/api/teacher/complaint</span></a>
</h4>
</div>
<div id="collapseOne35" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab35">
<li class="active"><a href="#info35" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox35" data-toggle="tab">在线测试</a></li>
<li><a href="#sample35" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info35">
<div class="well">
投诉老师 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
... ... @@ -5497,7 +5652,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox34">
<div class="tab-pane" id="sandbox35">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -5514,7 +5669,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/complaint" method="POST" name="form34" id="form34">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/complaint" method="POST" name="form35" id="form35">
<div class="form-group">
<label class="control-label" for="teacher_id">teacher_id</label>
<input type="int" class="form-control input-sm" id="teacher_id" required placeholder="老师ID" name="teacher_id">
... ... @@ -5536,8 +5691,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="34">提交</button>
<button type="reset" class="btn btn-info" rel="34">重置</button>
<button type="submit" class="btn btn-success send" rel="35">提交</button>
<button type="reset" class="btn btn-info" rel="35">重置</button>
</div>
</form>
</div>
... ... @@ -5547,8 +5702,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers34"></pre>
<pre id="response34"></pre>
<pre id="response_headers35"></pre>
<pre id="response35"></pre>
</div>
</div>
</div>
... ... @@ -5563,10 +5718,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample34">
<div class="tab-pane" id="sample35">
<div class="row">
<div class="col-md-12">
<pre id="sample_response34">{
<pre id="sample_response35">{
"code": 1,
"msg": "成功",
"time": "1571492001",
... ... @@ -5583,26 +5738,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-35">
<div class="panel-heading" id="heading-36">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion35" href="#collapseOne35"> 投诉详情 <span class="text-muted">/api/teacher/detail</span></a>
<a data-toggle="collapse" data-parent="#accordion36" href="#collapseOne36"> 投诉详情 <span class="text-muted">/api/teacher/detail</span></a>
</h4>
</div>
<div id="collapseOne35" class="panel-collapse collapse">
<div id="collapseOne36" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab35">
<li class="active"><a href="#info35" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox35" data-toggle="tab">在线测试</a></li>
<li><a href="#sample35" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab36">
<li class="active"><a href="#info36" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox36" data-toggle="tab">在线测试</a></li>
<li><a href="#sample36" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info35">
<div class="tab-pane active" id="info36">
<div class="well">
投诉详情 </div>
<div class="panel panel-default">
... ... @@ -5658,7 +5813,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox35">
<div class="tab-pane" id="sandbox36">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -5675,14 +5830,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/detail" method="POST" name="form35" id="form35">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/detail" method="POST" name="form36" id="form36">
<div class="form-group">
<label class="control-label" for="order_id">order_id</label>
<input type="int" class="form-control input-sm" id="order_id" required placeholder="订单ID" name="order_id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="35">提交</button>
<button type="reset" class="btn btn-info" rel="35">重置</button>
<button type="submit" class="btn btn-success send" rel="36">提交</button>
<button type="reset" class="btn btn-info" rel="36">重置</button>
</div>
</form>
</div>
... ... @@ -5692,8 +5847,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers35"></pre>
<pre id="response35"></pre>
<pre id="response_headers36"></pre>
<pre id="response36"></pre>
</div>
</div>
</div>
... ... @@ -5708,10 +5863,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample35">
<div class="tab-pane" id="sample36">
<div class="row">
<div class="col-md-12">
<pre id="sample_response35">{
<pre id="sample_response36">{
"code": 1,
"msg": "成功",
"time": "1571492001",
... ... @@ -5735,26 +5890,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-36">
<div class="panel-heading" id="heading-37">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion36" href="#collapseOne36"> 老师总结 <span class="text-muted">/api/teacher/summarize</span></a>
<a data-toggle="collapse" data-parent="#accordion37" href="#collapseOne37"> 老师总结 <span class="text-muted">/api/teacher/summarize</span></a>
</h4>
</div>
<div id="collapseOne36" class="panel-collapse collapse">
<div id="collapseOne37" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab36">
<li class="active"><a href="#info36" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox36" data-toggle="tab">在线测试</a></li>
<li><a href="#sample36" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab37">
<li class="active"><a href="#info37" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox37" data-toggle="tab">在线测试</a></li>
<li><a href="#sample37" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info36">
<div class="tab-pane active" id="info37">
<div class="well">
老师总结 </div>
<div class="panel panel-default">
... ... @@ -5858,7 +6013,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox36">
<div class="tab-pane" id="sandbox37">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -5875,7 +6030,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/summarize" method="POST" name="form36" id="form36">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/teacher/summarize" method="POST" name="form37" id="form37">
<div class="form-group">
<label class="control-label" for="order_id">order_id</label>
<input type="int" class="form-control input-sm" id="order_id" required placeholder="订单ID" name="order_id">
... ... @@ -5913,8 +6068,8 @@
<input type="string" class="form-control input-sm" id="planc" placeholder="方案三" name="planc">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="36">提交</button>
<button type="reset" class="btn btn-info" rel="36">重置</button>
<button type="submit" class="btn btn-success send" rel="37">提交</button>
<button type="reset" class="btn btn-info" rel="37">重置</button>
</div>
</form>
</div>
... ... @@ -5924,8 +6079,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers36"></pre>
<pre id="response36"></pre>
<pre id="response_headers37"></pre>
<pre id="response37"></pre>
</div>
</div>
</div>
... ... @@ -5940,10 +6095,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample36">
<div class="tab-pane" id="sample37">
<div class="row">
<div class="col-md-12">
<pre id="sample_response36">{
<pre id="sample_response37">{
"code": 1,
"msg": "成功",
"time": "1571492001",
... ... @@ -5962,26 +6117,26 @@
<h2>登录接口</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-37">
<div class="panel-heading" id="heading-38">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion37" href="#collapseOne37"> 获取sessionKey和openid <span class="text-muted">/api/user/getSessionKey</span></a>
<a data-toggle="collapse" data-parent="#accordion38" href="#collapseOne38"> 获取sessionKey和openid <span class="text-muted">/api/user/getSessionKey</span></a>
</h4>
</div>
<div id="collapseOne37" class="panel-collapse collapse">
<div id="collapseOne38" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab37">
<li class="active"><a href="#info37" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox37" data-toggle="tab">在线测试</a></li>
<li><a href="#sample37" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab38">
<li class="active"><a href="#info38" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox38" data-toggle="tab">在线测试</a></li>
<li><a href="#sample38" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info37">
<div class="tab-pane active" id="info38">
<div class="well">
获取sessionKey和openid </div>
<div class="panel panel-default">
... ... @@ -6020,20 +6175,20 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox37">
<div class="tab-pane" id="sandbox38">
<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="form37" id="form37">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/getSessionKey" method="POST" name="form38" id="form38">
<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="37">提交</button>
<button type="reset" class="btn btn-info" rel="37">重置</button>
<button type="submit" class="btn btn-success send" rel="38">提交</button>
<button type="reset" class="btn btn-info" rel="38">重置</button>
</div>
</form>
</div>
... ... @@ -6043,8 +6198,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers37"></pre>
<pre id="response37"></pre>
<pre id="response_headers38"></pre>
<pre id="response38"></pre>
</div>
</div>
</div>
... ... @@ -6059,10 +6214,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample37">
<div class="tab-pane" id="sample38">
<div class="row">
<div class="col-md-12">
<pre id="sample_response37">{
<pre id="sample_response38">{
"code": 1,
"msg": "获取成功",
"time": "1553839125",
... ... @@ -6080,26 +6235,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-38">
<div class="panel-heading" id="heading-39">
<h4 class="panel-title">
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion38" href="#collapseOne38"> <span class="text-muted">/api/user/http_get</span></a>
<a data-toggle="collapse" data-parent="#accordion39" href="#collapseOne39"> <span class="text-muted">/api/user/http_get</span></a>
</h4>
</div>
<div id="collapseOne38" class="panel-collapse collapse">
<div id="collapseOne39" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab38">
<li class="active"><a href="#info38" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox38" data-toggle="tab">在线测试</a></li>
<li><a href="#sample38" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab39">
<li class="active"><a href="#info39" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox39" data-toggle="tab">在线测试</a></li>
<li><a href="#sample39" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info38">
<div class="tab-pane active" id="info39">
<div class="well">
</div>
<div class="panel panel-default">
... ... @@ -6121,19 +6276,19 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox38">
<div class="tab-pane" id="sandbox39">
<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="form38" id="form38">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/http_get" method="get" name="form39" id="form39">
<div class="form-group">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="38">提交</button>
<button type="reset" class="btn btn-info" rel="38">重置</button>
<button type="submit" class="btn btn-success send" rel="39">提交</button>
<button type="reset" class="btn btn-info" rel="39">重置</button>
</div>
</form>
</div>
... ... @@ -6143,8 +6298,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers38"></pre>
<pre id="response38"></pre>
<pre id="response_headers39"></pre>
<pre id="response39"></pre>
</div>
</div>
</div>
... ... @@ -6159,10 +6314,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample38">
<div class="tab-pane" id="sample39">
<div class="row">
<div class="col-md-12">
<pre id="sample_response38"></pre>
<pre id="sample_response39"></pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -6172,26 +6327,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-39">
<div class="panel-heading" id="heading-40">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion39" href="#collapseOne39"> 小程序登录注册 <span class="text-muted">/api/user/login</span></a>
<a data-toggle="collapse" data-parent="#accordion40" href="#collapseOne40"> 小程序登录注册 <span class="text-muted">/api/user/login</span></a>
</h4>
</div>
<div id="collapseOne39" class="panel-collapse collapse">
<div id="collapseOne40" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab39">
<li class="active"><a href="#info39" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox39" data-toggle="tab">在线测试</a></li>
<li><a href="#sample39" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab40">
<li class="active"><a href="#info40" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox40" data-toggle="tab">在线测试</a></li>
<li><a href="#sample40" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info39">
<div class="tab-pane active" id="info40">
<div class="well">
小程序登录注册 </div>
<div class="panel panel-default">
... ... @@ -6254,13 +6409,13 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox39">
<div class="tab-pane" id="sandbox40">
<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="form39" id="form39">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/login" method="POST" name="form40" id="form40">
<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">
... ... @@ -6282,8 +6437,8 @@
<input type="int" class="form-control input-sm" id="invite_id" placeholder="邀请人ID" name="invite_id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="39">提交</button>
<button type="reset" class="btn btn-info" rel="39">重置</button>
<button type="submit" class="btn btn-success send" rel="40">提交</button>
<button type="reset" class="btn btn-info" rel="40">重置</button>
</div>
</form>
</div>
... ... @@ -6293,8 +6448,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers39"></pre>
<pre id="response39"></pre>
<pre id="response_headers40"></pre>
<pre id="response40"></pre>
</div>
</div>
</div>
... ... @@ -6309,10 +6464,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample39">
<div class="tab-pane" id="sample40">
<div class="row">
<div class="col-md-12">
<pre id="sample_response39">{
<pre id="sample_response40">{
"code": 1,
"msg": "登陆成功",
"time": "1553839125",
... ... @@ -6329,26 +6484,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-40">
<div class="panel-heading" id="heading-41">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion40" href="#collapseOne40"> 通过code获取token <span class="text-muted">/api/user/getToken</span></a>
<a data-toggle="collapse" data-parent="#accordion41" href="#collapseOne41"> 通过code获取token <span class="text-muted">/api/user/getToken</span></a>
</h4>
</div>
<div id="collapseOne40" class="panel-collapse collapse">
<div id="collapseOne41" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab40">
<li class="active"><a href="#info40" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox40" data-toggle="tab">在线测试</a></li>
<li><a href="#sample40" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab41">
<li class="active"><a href="#info41" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox41" data-toggle="tab">在线测试</a></li>
<li><a href="#sample41" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info40">
<div class="tab-pane active" id="info41">
<div class="well">
通过code获取token </div>
<div class="panel panel-default">
... ... @@ -6387,20 +6542,20 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox40">
<div class="tab-pane" id="sandbox41">
<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="form40" id="form40">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/getToken" method="POST" name="form41" id="form41">
<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="40">提交</button>
<button type="reset" class="btn btn-info" rel="40">重置</button>
<button type="submit" class="btn btn-success send" rel="41">提交</button>
<button type="reset" class="btn btn-info" rel="41">重置</button>
</div>
</form>
</div>
... ... @@ -6410,8 +6565,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers40"></pre>
<pre id="response40"></pre>
<pre id="response_headers41"></pre>
<pre id="response41"></pre>
</div>
</div>
</div>
... ... @@ -6426,10 +6581,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample40">
<div class="tab-pane" id="sample41">
<div class="row">
<div class="col-md-12">
<pre id="sample_response40">{
<pre id="sample_response41">{
"code": 1,
"msg": "SUCCESS",
"time": "1553839125",
... ... @@ -6446,26 +6601,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-41">
<div class="panel-heading" id="heading-42">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion41" href="#collapseOne41"> 判断用户身份 <span class="text-muted">/api/user/judge</span></a>
<a data-toggle="collapse" data-parent="#accordion42" href="#collapseOne42"> 判断用户身份 <span class="text-muted">/api/user/judge</span></a>
</h4>
</div>
<div id="collapseOne41" class="panel-collapse collapse">
<div id="collapseOne42" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab41">
<li class="active"><a href="#info41" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox41" data-toggle="tab">在线测试</a></li>
<li><a href="#sample41" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab42">
<li class="active"><a href="#info42" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox42" data-toggle="tab">在线测试</a></li>
<li><a href="#sample42" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info41">
<div class="tab-pane active" id="info42">
<div class="well">
判断用户身份 </div>
<div class="panel panel-default">
... ... @@ -6504,7 +6659,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox41">
<div class="tab-pane" id="sandbox42">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -6521,13 +6676,13 @@
<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/judge" method="POST" name="form41" id="form41">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/judge" method="POST" name="form42" id="form42">
<div class="form-group">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="41">提交</button>
<button type="reset" class="btn btn-info" rel="41">重置</button>
<button type="submit" class="btn btn-success send" rel="42">提交</button>
<button type="reset" class="btn btn-info" rel="42">重置</button>
</div>
</form>
</div>
... ... @@ -6537,8 +6692,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers41"></pre>
<pre id="response41"></pre>
<pre id="response_headers42"></pre>
<pre id="response42"></pre>
</div>
</div>
</div>
... ... @@ -6553,17 +6708,17 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample41">
<div class="tab-pane" id="sample42">
<div class="row">
<div class="col-md-12">
<pre id="sample_response41">{
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"nickname"://昵称
"avatar"://头像
"identity"://身份(1学生2老师</pre>
<pre id="sample_response42">{
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"nickname"://昵称
"avatar"://头像
"identity"://身份(1学生2老师</pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -6578,7 +6733,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-01-17 16:20:56 </div>
Generated on 2020-01-17 16:55:55 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...