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

修改购物车结算的优惠券

... ... @@ -355,6 +355,8 @@ class Cars extends Api
"coupon_name": "全场优惠券",//优惠券名称
"end_time": "2020.1.31",//优惠券有效期
"type": "全场通用"//优惠券用途
"is_discount": "0"//是否为折扣(0:否,1:是)
"price_tag": 100 //折扣或者减少金额
},
{
"id": 10,
... ... @@ -420,6 +422,9 @@ class Cars extends Api
$res[$key]['coupon_tag'] = '无门槛';
$res[$key]['coupon_price'] = '¥'.$value['reduce'];
$res[$key]['coupon_tag1'] = '无门槛';
$res[$key]['is_discount'] = 0;//是否为折扣(0:否,1:是)
$res[$key]['price_tag'] = $value['reduce'];
}else{
//折扣券,去掉满减金额,减少金额字段,
unset($value['full_reduce']);
... ... @@ -427,6 +432,9 @@ class Cars extends Api
$res[$key]['coupon_tag'] = '折扣券';
$res[$key]['coupon_price'] = $value['discount'].'折';
$res[$key]['coupon_tag1'] = '无门槛';
$res[$key]['is_discount'] = 1;//是否为折扣(0:否,1:是)
$res[$key]['price_tag'] = $value['discount'];
}
}else{
//有门槛
... ... @@ -438,12 +446,18 @@ class Cars extends Api
$res[$key]['coupon_tag'] = '满减券';
$res[$key]['coupon_price'] = '¥'.$value['reduce'];
$res[$key]['coupon_tag1'] = '满'.$value['full_reduce'].'可用';
$res[$key]['is_discount'] = 0;//是否为折扣(0:否,1:是)
$res[$key]['price_tag'] = $value['reduce'];
}else{
//折扣券,去掉减少金额字段,
unset($value['reduce']);
$res[$key]['coupon_tag'] = '折扣券';
$res[$key]['coupon_price'] = $value['discount'].'折';
$res[$key]['coupon_tag1'] = '满'.$value['full_reduce'].'可用';
$res[$key]['is_discount'] = 1;//是否为折扣(0:否,1:是)
$res[$key]['price_tag'] = $value['discount'];
}
}
}
... ...
... ... @@ -292,4 +292,77 @@ class Orders extends Api
}
}
/**
* @ApiTitle (申请退款)
* @ApiSummary (申请退款)
* @ApiMethod (GET)
* @ApiRoute (/api/order/applyRefund)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
*
* @ApiParams (name="order_id", type="inter", required=true, description="订单id")
*
* @ApiReturn({
"code": 1,
"msg": "成功",
"time": "1571730709",
"data": null
})
*/
public function applyRefund(){
if($this->request->isGet()){
$order_id = $this->request->get('order_id');
$rule = config('verify.order_detail');
$validate = new Validate($rule['rule'],$rule['msg']);
if (!$validate->check(['order_id'=>$order_id])) {
$this->error($validate->getError());
}
//查询订单
$status = $this->order_status;
$order = Common::findSoftWhereData('order',['id'=>$order_id,'uid'=>$this->uid,'status'=>$status[2]],'id');
if($order){
$security_price = $order['security_price'];
$order['security_price'] = $security_price*100;
if($security_price < 1){
//暂时全额退款
$order['refund_price'] = $security_price*100;
}else{
//计算免费取消时间
$cancel_time = $order['start_time'] + $order['know4']*3600 - $order['know1']*3600;
$current_time = time();
if($current_time <= $cancel_time){
//正常
$order['refund_price'] = $security_price*100;
}else{
//扣除扣取百分比
$order['refund_price'] = $security_price*100*(1-$order['know2']/100);
}
}
//查询订单
$result = $this->refund($order);
if($result['return_code'] === 'SUCCESS' && $result['result_code'] === 'SUCCESS'){
$orderModel = new \app\admin\model\Order();
//退款保证金成功,更新订单表
$res = $orderModel->where(['id'=>$order_id,'uid'=>$this->uid,'status'=>1])->update(['status'=>4,'return_status'=>1]);
if($res){
//删除订单记录表
$bookModel = new BookRecord();
$bookModel->where(['order_id'=>$order_id])->delete();
$this->success('成功');
}else{
$this->error('失败');
}
}else{
$this->error($result['return_msg']);
}
}
$this->error('未找到订单');
}else{
$this->error('请求方式错误');
}
}
}
... ...
... ... @@ -187,29 +187,30 @@
<a href="javascript:;" data-id="22" class="list-group-item">我的订单</a>
<a href="javascript:;" data-id="23" class="list-group-item">订单详情</a>
<a href="javascript:;" data-id="24" class="list-group-item">取消订单</a>
<a href="javascript:;" data-id="25" 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="25" class="list-group-item">支付订单</a>
<a href="javascript:;" data-id="26" class="list-group-item">立即购买</a>
<a href="javascript:;" data-id="26" class="list-group-item">支付订单</a>
<a href="javascript:;" data-id="27" 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="27" class="list-group-item">商品检索列表</a>
<a href="javascript:;" data-id="28" 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="28" class="list-group-item">品类分类</a>
<a href="javascript:;" data-id="29" 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="29" class="list-group-item">小程序登录</a>
<a href="javascript:;" data-id="30" class="list-group-item">获取个人信息(新人/旧人)</a>
<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="30" class="list-group-item">小程序登录</a>
<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>
</div>
</div>
</div>
... ... @@ -1552,6 +1553,8 @@
"coupon_name": "全场优惠券",//优惠券名称
"end_time": "2020.1.31",//优惠券有效期
"type": "全场通用"//优惠券用途
"is_discount": "0"//是否为折扣(0:否,1:是)
"price_tag": 100 //折扣或者减少金额
},
{
"id": 10,
... ... @@ -3952,13 +3955,11 @@
</div>
</div>
</div>
<h2>支付接口</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-25">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion25" href="#collapseOne25"> 支付订单 <span class="text-muted">/api/pay/pay</span></a>
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion25" href="#collapseOne25"> 申请退款 <span class="text-muted">/api/order/applyRefund</span></a>
</h4>
</div>
<div id="collapseOne25" class="panel-collapse collapse">
... ... @@ -3976,6 +3977,151 @@
<div class="tab-pane active" id="info25">
<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>inter</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="sandbox25">
<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/order/applyRefund" method="GET" name="form25" id="form25">
<div class="form-group">
<label class="control-label" for="order_id">order_id</label>
<input type="inter" 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="25">提交</button>
<button type="reset" class="btn btn-info" rel="25">重置</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_headers25"></pre>
<pre id="response25"></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="sample25">
<div class="row">
<div class="col-md-12">
<pre id="sample_response25">{
"code": 1,
"msg": "成功",
"time": "1571730709",
"data": null
}</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-26">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion26" href="#collapseOne26"> 支付订单 <span class="text-muted">/api/pay/pay</span></a>
</h4>
</div>
<div id="collapseOne26" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab26">
<li class="active"><a href="#info26" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox26" data-toggle="tab">在线测试</a></li>
<li><a href="#sample26" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info26">
<div class="well">
支付订单 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
... ... @@ -4036,7 +4182,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox25">
<div class="tab-pane" id="sandbox26">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -4053,7 +4199,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/pay/pay" method="POST" name="form25" id="form25">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/pay/pay" method="POST" name="form26" id="form26">
<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">
... ... @@ -4063,8 +4209,8 @@
<input type="inter" class="form-control input-sm" id="order_sn" required placeholder="订单号" name="order_sn">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="25">提交</button>
<button type="reset" class="btn btn-info" rel="25">重置</button>
<button type="submit" class="btn btn-success send" rel="26">提交</button>
<button type="reset" class="btn btn-info" rel="26">重置</button>
</div>
</form>
</div>
... ... @@ -4074,8 +4220,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers25"></pre>
<pre id="response25"></pre>
<pre id="response_headers26"></pre>
<pre id="response26"></pre>
</div>
</div>
</div>
... ... @@ -4090,10 +4236,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample25">
<div class="tab-pane" id="sample26">
<div class="row">
<div class="col-md-12">
<pre id="sample_response25"></pre>
<pre id="sample_response26"></pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -4103,26 +4249,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-26">
<div class="panel-heading" id="heading-27">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion26" href="#collapseOne26"> 立即购买 <span class="text-muted">/api/pay/purchase</span></a>
<a data-toggle="collapse" data-parent="#accordion27" href="#collapseOne27"> 立即购买 <span class="text-muted">/api/pay/purchase</span></a>
</h4>
</div>
<div id="collapseOne26" class="panel-collapse collapse">
<div id="collapseOne27" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab26">
<li class="active"><a href="#info26" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox26" data-toggle="tab">在线测试</a></li>
<li><a href="#sample26" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab27">
<li class="active"><a href="#info27" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox27" data-toggle="tab">在线测试</a></li>
<li><a href="#sample27" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info26">
<div class="tab-pane active" id="info27">
<div class="well">
立即购买 </div>
<div class="panel panel-default">
... ... @@ -4250,7 +4396,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox26">
<div class="tab-pane" id="sandbox27">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -4267,7 +4413,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/pay/purchase" method="POST" name="form26" id="form26">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/pay/purchase" method="POST" name="form27" id="form27">
<div class="form-group">
<label class="control-label" for="receive_name">receive_name</label>
<input type="string" class="form-control input-sm" id="receive_name" required placeholder="收货人" name="receive_name">
... ... @@ -4321,8 +4467,8 @@
<input type="inter" class="form-control input-sm" id="total_expense_price" required placeholder="运费总金额" name="total_expense_price">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="26">提交</button>
<button type="reset" class="btn btn-info" rel="26">重置</button>
<button type="submit" class="btn btn-success send" rel="27">提交</button>
<button type="reset" class="btn btn-info" rel="27">重置</button>
</div>
</form>
</div>
... ... @@ -4332,8 +4478,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers26"></pre>
<pre id="response26"></pre>
<pre id="response_headers27"></pre>
<pre id="response27"></pre>
</div>
</div>
</div>
... ... @@ -4348,10 +4494,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample26">
<div class="tab-pane" id="sample27">
<div class="row">
<div class="col-md-12">
<pre id="sample_response26"></pre>
<pre id="sample_response27"></pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -4363,26 +4509,26 @@
<h2>商品检索接口</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-27">
<div class="panel-heading" id="heading-28">
<h4 class="panel-title">
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion27" href="#collapseOne27"> 商品检索列表 <span class="text-muted">/api/search/searchGoodsList</span></a>
<a data-toggle="collapse" data-parent="#accordion28" href="#collapseOne28"> 商品检索列表 <span class="text-muted">/api/search/searchGoodsList</span></a>
</h4>
</div>
<div id="collapseOne27" class="panel-collapse collapse">
<div id="collapseOne28" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab27">
<li class="active"><a href="#info27" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox27" data-toggle="tab">在线测试</a></li>
<li><a href="#sample27" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab28">
<li class="active"><a href="#info28" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox28" data-toggle="tab">在线测试</a></li>
<li><a href="#sample28" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info27">
<div class="tab-pane active" id="info28">
<div class="well">
商品检索列表 </div>
<div class="panel panel-default">
... ... @@ -4444,7 +4590,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox27">
<div class="tab-pane" id="sandbox28">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -4461,7 +4607,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/search/searchGoodsList" method="GET" name="form27" id="form27">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/search/searchGoodsList" method="GET" name="form28" id="form28">
<div class="form-group">
<label class="control-label" for="keyword">keyword</label>
<input type="string" class="form-control input-sm" id="keyword" required placeholder="检索关键字" name="keyword">
... ... @@ -4471,8 +4617,8 @@
<input type="inter" class="form-control input-sm" id="page" required placeholder="分页页码" name="page">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="27">提交</button>
<button type="reset" class="btn btn-info" rel="27">重置</button>
<button type="submit" class="btn btn-success send" rel="28">提交</button>
<button type="reset" class="btn btn-info" rel="28">重置</button>
</div>
</form>
</div>
... ... @@ -4482,8 +4628,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers27"></pre>
<pre id="response27"></pre>
<pre id="response_headers28"></pre>
<pre id="response28"></pre>
</div>
</div>
</div>
... ... @@ -4498,10 +4644,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample27">
<div class="tab-pane" id="sample28">
<div class="row">
<div class="col-md-12">
<pre id="sample_response27">{
<pre id="sample_response28">{
"code": 1,
"msg": "成功",
"time": "1574941706",
... ... @@ -4551,26 +4697,26 @@
<h2>品类接口</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-28">
<div class="panel-heading" id="heading-29">
<h4 class="panel-title">
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion28" href="#collapseOne28"> 品类分类 <span class="text-muted">/api/sort/sortType</span></a>
<a data-toggle="collapse" data-parent="#accordion29" href="#collapseOne29"> 品类分类 <span class="text-muted">/api/sort/sortType</span></a>
</h4>
</div>
<div id="collapseOne28" class="panel-collapse collapse">
<div id="collapseOne29" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab28">
<li class="active"><a href="#info28" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox28" data-toggle="tab">在线测试</a></li>
<li><a href="#sample28" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab29">
<li class="active"><a href="#info29" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox29" data-toggle="tab">在线测试</a></li>
<li><a href="#sample29" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info28">
<div class="tab-pane active" id="info29">
<div class="well">
品类分类 </div>
<div class="panel panel-default">
... ... @@ -4592,19 +4738,19 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox28">
<div class="tab-pane" id="sandbox29">
<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/sort/sortType" method="GET" name="form28" id="form28">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/sort/sortType" method="GET" name="form29" id="form29">
<div class="form-group">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="28">提交</button>
<button type="reset" class="btn btn-info" rel="28">重置</button>
<button type="submit" class="btn btn-success send" rel="29">提交</button>
<button type="reset" class="btn btn-info" rel="29">重置</button>
</div>
</form>
</div>
... ... @@ -4614,8 +4760,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers28"></pre>
<pre id="response28"></pre>
<pre id="response_headers29"></pre>
<pre id="response29"></pre>
</div>
</div>
</div>
... ... @@ -4630,10 +4776,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample28">
<div class="tab-pane" id="sample29">
<div class="row">
<div class="col-md-12">
<pre id="sample_response28">{
<pre id="sample_response29">{
"code": 1,
"msg": "成功",
"time": "1574939035",
... ... @@ -4669,26 +4815,26 @@
<h2>个人中心接口</h2>
<hr>
<div class="panel panel-default">
<div class="panel-heading" id="heading-29">
<div class="panel-heading" id="heading-30">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion29" href="#collapseOne29"> 小程序登录 <span class="text-muted">/api/user/login</span></a>
<a data-toggle="collapse" data-parent="#accordion30" href="#collapseOne30"> 小程序登录 <span class="text-muted">/api/user/login</span></a>
</h4>
</div>
<div id="collapseOne29" class="panel-collapse collapse">
<div id="collapseOne30" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab29">
<li class="active"><a href="#info29" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox29" data-toggle="tab">在线测试</a></li>
<li><a href="#sample29" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab30">
<li class="active"><a href="#info30" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox30" data-toggle="tab">在线测试</a></li>
<li><a href="#sample30" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info29">
<div class="tab-pane active" id="info30">
<div class="well">
小程序登录 </div>
<div class="panel panel-default">
... ... @@ -4739,13 +4885,13 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox29">
<div class="tab-pane" id="sandbox30">
<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="form29" id="form29">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/login" method="POST" name="form30" id="form30">
<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">
... ... @@ -4759,8 +4905,8 @@
<input type="string" class="form-control input-sm" id="avatar" required placeholder="小程序头像" name="avatar">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="29">提交</button>
<button type="reset" class="btn btn-info" rel="29">重置</button>
<button type="submit" class="btn btn-success send" rel="30">提交</button>
<button type="reset" class="btn btn-info" rel="30">重置</button>
</div>
</form>
</div>
... ... @@ -4770,8 +4916,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers29"></pre>
<pre id="response29"></pre>
<pre id="response_headers30"></pre>
<pre id="response30"></pre>
</div>
</div>
</div>
... ... @@ -4786,10 +4932,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample29">
<div class="tab-pane" id="sample30">
<div class="row">
<div class="col-md-12">
<pre id="sample_response29">{
<pre id="sample_response30">{
"code": 1,
"msg": "登录成功",
"time": "1553839125",
... ... @@ -4810,26 +4956,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-30">
<div class="panel-heading" id="heading-31">
<h4 class="panel-title">
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion30" href="#collapseOne30"> 获取个人信息(新人/旧人) <span class="text-muted">/api/user/info</span></a>
<a data-toggle="collapse" data-parent="#accordion31" href="#collapseOne31"> 获取个人信息(新人/旧人) <span class="text-muted">/api/user/info</span></a>
</h4>
</div>
<div id="collapseOne30" class="panel-collapse collapse">
<div id="collapseOne31" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab30">
<li class="active"><a href="#info30" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox30" data-toggle="tab">在线测试</a></li>
<li><a href="#sample30" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab31">
<li class="active"><a href="#info31" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox31" data-toggle="tab">在线测试</a></li>
<li><a href="#sample31" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info30">
<div class="tab-pane active" id="info31">
<div class="well">
获取个人信息(新人/旧人) </div>
<div class="panel panel-default">
... ... @@ -4868,7 +5014,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox30">
<div class="tab-pane" id="sandbox31">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -4885,13 +5031,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/info" method="GET" name="form30" id="form30">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/info" method="GET" name="form31" id="form31">
<div class="form-group">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="30">提交</button>
<button type="reset" class="btn btn-info" rel="30">重置</button>
<button type="submit" class="btn btn-success send" rel="31">提交</button>
<button type="reset" class="btn btn-info" rel="31">重置</button>
</div>
</form>
</div>
... ... @@ -4901,8 +5047,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers30"></pre>
<pre id="response30"></pre>
<pre id="response_headers31"></pre>
<pre id="response31"></pre>
</div>
</div>
</div>
... ... @@ -4917,10 +5063,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample30">
<div class="tab-pane" id="sample31">
<div class="row">
<div class="col-md-12">
<pre id="sample_response30">{
<pre id="sample_response31">{
"code": 1,
"msg": "成功",
"time": "1575188985",
... ... @@ -4947,26 +5093,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-31">
<div class="panel-heading" id="heading-32">
<h4 class="panel-title">
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion31" href="#collapseOne31"> 获取二维码 <span class="text-muted">/api/user/getWxCode</span></a>
<a data-toggle="collapse" data-parent="#accordion32" href="#collapseOne32"> 获取二维码 <span class="text-muted">/api/user/getWxCode</span></a>
</h4>
</div>
<div id="collapseOne31" class="panel-collapse collapse">
<div id="collapseOne32" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab31">
<li class="active"><a href="#info31" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox31" data-toggle="tab">在线测试</a></li>
<li><a href="#sample31" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab32">
<li class="active"><a href="#info32" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox32" data-toggle="tab">在线测试</a></li>
<li><a href="#sample32" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info31">
<div class="tab-pane active" id="info32">
<div class="well">
获取二维码 </div>
<div class="panel panel-default">
... ... @@ -5022,7 +5168,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox31">
<div class="tab-pane" id="sandbox32">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -5039,14 +5185,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/user/getWxCode" method="GET" name="form31" id="form31">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/getWxCode" method="GET" name="form32" id="form32">
<div class="form-group">
<label class="control-label" for="goods_id">goods_id</label>
<input type="inter" class="form-control input-sm" id="goods_id" required placeholder="商品id" name="goods_id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="31">提交</button>
<button type="reset" class="btn btn-info" rel="31">重置</button>
<button type="submit" class="btn btn-success send" rel="32">提交</button>
<button type="reset" class="btn btn-info" rel="32">重置</button>
</div>
</form>
</div>
... ... @@ -5056,8 +5202,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers31"></pre>
<pre id="response31"></pre>
<pre id="response_headers32"></pre>
<pre id="response32"></pre>
</div>
</div>
</div>
... ... @@ -5072,10 +5218,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample31">
<div class="tab-pane" id="sample32">
<div class="row">
<div class="col-md-12">
<pre id="sample_response31">{
<pre id="sample_response32">{
"code": 1,
"msg": "成功",
"time": "1572602867",
... ... @@ -5092,26 +5238,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-32">
<div class="panel-heading" id="heading-33">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion32" href="#collapseOne32"> 收藏 <span class="text-muted">/api/user/collection</span></a>
<a data-toggle="collapse" data-parent="#accordion33" href="#collapseOne33"> 收藏 <span class="text-muted">/api/user/collection</span></a>
</h4>
</div>
<div id="collapseOne32" class="panel-collapse collapse">
<div id="collapseOne33" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab32">
<li class="active"><a href="#info32" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox32" data-toggle="tab">在线测试</a></li>
<li><a href="#sample32" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab33">
<li class="active"><a href="#info33" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox33" data-toggle="tab">在线测试</a></li>
<li><a href="#sample33" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info32">
<div class="tab-pane active" id="info33">
<div class="well">
收藏 </div>
<div class="panel panel-default">
... ... @@ -5167,7 +5313,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox32">
<div class="tab-pane" id="sandbox33">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -5184,14 +5330,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/user/collection" method="POST" name="form32" id="form32">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/collection" method="POST" name="form33" id="form33">
<div class="form-group">
<label class="control-label" for="goods_id">goods_id</label>
<input type="inter" class="form-control input-sm" id="goods_id" required placeholder="商品id" name="goods_id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="32">提交</button>
<button type="reset" class="btn btn-info" rel="32">重置</button>
<button type="submit" class="btn btn-success send" rel="33">提交</button>
<button type="reset" class="btn btn-info" rel="33">重置</button>
</div>
</form>
</div>
... ... @@ -5201,8 +5347,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers32"></pre>
<pre id="response32"></pre>
<pre id="response_headers33"></pre>
<pre id="response33"></pre>
</div>
</div>
</div>
... ... @@ -5217,10 +5363,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample32">
<div class="tab-pane" id="sample33">
<div class="row">
<div class="col-md-12">
<pre id="sample_response32">{
<pre id="sample_response33">{
"code": 1,
"msg": "成功",
"time": "1571037179",
... ... @@ -5235,26 +5381,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-33">
<div class="panel-heading" id="heading-34">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion33" href="#collapseOne33"> 取消收藏 <span class="text-muted">/api/user/cancelCollection</span></a>
<a data-toggle="collapse" data-parent="#accordion34" href="#collapseOne34"> 取消收藏 <span class="text-muted">/api/user/cancelCollection</span></a>
</h4>
</div>
<div id="collapseOne33" class="panel-collapse collapse">
<div id="collapseOne34" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab33">
<li class="active"><a href="#info33" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox33" data-toggle="tab">在线测试</a></li>
<li><a href="#sample33" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab34">
<li class="active"><a href="#info34" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox34" data-toggle="tab">在线测试</a></li>
<li><a href="#sample34" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info33">
<div class="tab-pane active" id="info34">
<div class="well">
取消收藏 </div>
<div class="panel panel-default">
... ... @@ -5310,7 +5456,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox33">
<div class="tab-pane" id="sandbox34">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -5327,14 +5473,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/user/cancelCollection" method="POST" name="form33" id="form33">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/cancelCollection" method="POST" name="form34" id="form34">
<div class="form-group">
<label class="control-label" for="goods_id">goods_id</label>
<input type="inter" class="form-control input-sm" id="goods_id" required placeholder="商品id" name="goods_id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="33">提交</button>
<button type="reset" class="btn btn-info" rel="33">重置</button>
<button type="submit" class="btn btn-success send" rel="34">提交</button>
<button type="reset" class="btn btn-info" rel="34">重置</button>
</div>
</form>
</div>
... ... @@ -5344,8 +5490,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers33"></pre>
<pre id="response33"></pre>
<pre id="response_headers34"></pre>
<pre id="response34"></pre>
</div>
</div>
</div>
... ... @@ -5360,10 +5506,10 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample33">
<div class="tab-pane" id="sample34">
<div class="row">
<div class="col-md-12">
<pre id="sample_response33">{
<pre id="sample_response34">{
"code": 1,
"msg": "成功",
"time": "1571037179",
... ... @@ -5378,26 +5524,26 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-34">
<div class="panel-heading" id="heading-35">
<h4 class="panel-title">
<span class="label label-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion34" href="#collapseOne34"> 我的收藏 <span class="text-muted">/api/user/myCollectionList</span></a>
<a data-toggle="collapse" data-parent="#accordion35" href="#collapseOne35"> 我的收藏 <span class="text-muted">/api/user/myCollectionList</span></a>
</h4>
</div>
<div id="collapseOne34" class="panel-collapse collapse">
<div id="collapseOne35" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab34">
<li class="active"><a href="#info34" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox34" data-toggle="tab">在线测试</a></li>
<li><a href="#sample34" data-toggle="tab">返回示例</a></li>
<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="info34">
<div class="tab-pane active" id="info35">
<div class="well">
我的收藏 </div>
<div class="panel panel-default">
... ... @@ -5453,7 +5599,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">
... ... @@ -5470,14 +5616,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/user/myCollectionList" method="GET" name="form34" id="form34">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/myCollectionList" method="GET" name="form35" id="form35">
<div class="form-group">
<label class="control-label" for="page">page</label>
<input type="inter" class="form-control input-sm" id="page" required placeholder="分页页码" name="page">
</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>
... ... @@ -5487,8 +5633,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>
... ... @@ -5503,10 +5649,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": "1574941706",
... ... @@ -5554,26 +5700,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-success">GET</span>
<a data-toggle="collapse" data-parent="#accordion35" href="#collapseOne35"> 我的优惠券 <span class="text-muted">/api/user/myCouponList</span></a>
<a data-toggle="collapse" data-parent="#accordion36" href="#collapseOne36"> 我的优惠券 <span class="text-muted">/api/user/myCouponList</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">
... ... @@ -5612,20 +5758,20 @@
</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">
<div class="panel-heading"><strong>参数</strong></div>
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/myCouponList" method="GET" name="form35" id="form35">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/myCouponList" method="GET" name="form36" id="form36">
<div class="form-group">
<label class="control-label" for="is_flag">is_flag</label>
<input type="inter" class="form-control input-sm" id="is_flag" required placeholder="优惠券标识(0:未使用,1:已使用,2:已过期)" name="is_flag">
</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>
... ... @@ -5635,8 +5781,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>
... ... @@ -5651,10 +5797,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": "1575372162",
... ... @@ -5693,7 +5839,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2019-12-04 18:51:12 </div>
Generated on 2019-12-04 19:12:54 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...