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

修改组合订单

... ... @@ -2,7 +2,6 @@
<project version="4">
<component name="ChangeListManager">
<list default="true" id="e93f11c2-a7d9-4d35-8b1c-8dd18e7f5fef" name="Default" comment="">
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/application/api/controller/Pay.php" afterPath="$PROJECT_DIR$/application/api/controller/Pay.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/application/api/controller/User.php" afterPath="$PROJECT_DIR$/application/api/controller/User.php" />
<change type="MODIFICATION" beforePath="$PROJECT_DIR$/public/api.html" afterPath="$PROJECT_DIR$/public/api.html" />
... ... @@ -19,14 +18,15 @@
<file leaf-file-name="User.php" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/application/api/controller/User.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="25">
<caret line="748" column="41" lean-forward="false" selection-start-line="748" selection-start-column="41" selection-end-line="748" selection-end-column="41" />
<state relative-caret-position="182">
<caret line="1049" column="50" lean-forward="true" selection-start-line="1049" selection-start-column="50" selection-end-line="1049" selection-end-column="50" />
<folding>
<element signature="e#38#68#0#PHP" expanded="true" />
<element signature="e#337#456#0#PHP" expanded="false" />
<element signature="e#462#1200#0#PHP" expanded="false" />
<element signature="e#1205#2868#0#PHP" expanded="false" />
<element signature="e#2874#3402#0#PHP" expanded="false" />
<element signature="e#3407#4178#0#PHP" expanded="false" />
<element signature="e#4184#4591#0#PHP" expanded="false" />
<element signature="e#4596#4939#0#PHP" expanded="false" />
<element signature="e#4945#5782#0#PHP" expanded="false" />
... ... @@ -52,12 +52,16 @@
<element signature="e#21466#21824#0#PHP" expanded="false" />
<element signature="e#21829#22019#0#PHP" expanded="false" />
<element signature="e#22025#23168#0#PHP" expanded="false" />
<element signature="e#23173#25838#0#PHP" expanded="false" />
<element signature="e#25844#26335#0#PHP" expanded="false" />
<element signature="e#26340#27427#0#PHP" expanded="false" />
<element signature="e#27433#27967#0#PHP" expanded="false" />
<element signature="e#27972#28886#0#PHP" expanded="false" />
<element signature="e#28892#29423#0#PHP" expanded="false" />
<element signature="e#29428#30348#0#PHP" expanded="false" />
<element signature="e#29428#30347#0#PHP" expanded="false" />
<element signature="e#30353#31002#0#PHP" expanded="false" />
<element signature="e#31007#31880#0#PHP" expanded="false" />
<element signature="e#31886#32481#0#PHP" expanded="false" />
</folding>
</state>
</provider>
... ... @@ -66,8 +70,8 @@
<file leaf-file-name="Pay.php" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="450">
<caret line="94" column="7" lean-forward="false" selection-start-line="94" selection-start-column="7" selection-end-line="94" selection-end-column="7" />
<state relative-caret-position="558">
<caret line="372" column="16" lean-forward="true" selection-start-line="372" selection-start-column="16" selection-end-line="372" selection-end-column="16" />
<folding>
<element signature="e#450#569#0#PHP" expanded="false" />
<element signature="e#575#888#0#PHP" expanded="false" />
... ... @@ -75,11 +79,11 @@
<element signature="e#2944#3362#0#PHP" expanded="false" />
<element signature="e#3367#7202#0#PHP" expanded="false" />
<element signature="e#7208#7628#0#PHP" expanded="false" />
<element signature="e#7633#11475#0#PHP" expanded="false" />
<element signature="e#11502#13401#0#PHP" expanded="false" />
<element signature="e#13430#14260#0#PHP" expanded="false" />
<element signature="e#14289#15122#0#PHP" expanded="false" />
<element signature="e#15145#15362#0#PHP" expanded="false" />
<element signature="e#7633#11473#0#PHP" expanded="false" />
<element signature="e#11500#13399#0#PHP" expanded="false" />
<element signature="e#13428#14258#0#PHP" expanded="false" />
<element signature="e#14287#15120#0#PHP" expanded="false" />
<element signature="e#15143#15360#0#PHP" expanded="false" />
</folding>
</state>
</provider>
... ... @@ -159,10 +163,10 @@
</component>
<component name="PhpWorkspaceProjectConfiguration" backward_compatibility_performed="true" />
<component name="ProjectFrameBounds" extendedState="1">
<option name="x" value="136" />
<option name="y" value="61" />
<option name="x" value="145" />
<option name="y" value="19" />
<option name="width" value="1699" />
<option name="height" value="970" />
<option name="height" value="994" />
</component>
<component name="ProjectView">
<navigator currentView="ProjectPane" proportions="" version="1">
... ... @@ -260,7 +264,7 @@
<workItem from="1574143209694" duration="3660000" />
<workItem from="1574146994475" duration="23222000" />
<workItem from="1574209189943" duration="37638000" />
<workItem from="1574252363848" duration="62000" />
<workItem from="1574252363848" duration="8640000" />
</task>
<task id="LOCAL-00001" summary="调试">
<created>1574145133364</created>
... ... @@ -273,7 +277,7 @@
<servers />
</component>
<component name="TimeTrackingManager">
<option name="totallyTimeSpent" value="109275000" />
<option name="totallyTimeSpent" value="117853000" />
</component>
<component name="TodoView">
<todo-panel id="selected-file">
... ... @@ -285,7 +289,7 @@
</todo-panel>
</component>
<component name="ToolWindowManager">
<frame x="136" y="61" width="1699" height="970" extended-state="1" />
<frame x="145" y="19" width="1699" height="994" extended-state="1" />
<layout>
<window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.15070164" sideWeight="0.5" order="1" side_tool="false" content_ui="combo" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.32912987" sideWeight="0.5" order="9" side_tool="false" content_ui="tabs" />
... ... @@ -294,7 +298,7 @@
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
<window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.15006003" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Terminal" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" show_stripe_button="true" weight="0.14935823" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
<window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="true" content_ui="tabs" />
<window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
<window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
... ... @@ -450,6 +454,7 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="200">
<caret line="8" column="33" lean-forward="false" selection-start-line="8" selection-start-column="27" selection-end-line="8" selection-end-column="33" />
<folding />
</state>
</provider>
</entry>
... ... @@ -569,6 +574,7 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="297">
<caret line="25" column="6" lean-forward="false" selection-start-line="25" selection-start-column="6" selection-end-line="25" selection-end-column="6" />
<folding />
</state>
</provider>
</entry>
... ... @@ -576,6 +582,7 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="411">
<caret line="28" column="9" lean-forward="false" selection-start-line="28" selection-start-column="9" selection-end-line="28" selection-end-column="9" />
<folding />
</state>
</provider>
</entry>
... ... @@ -583,6 +590,7 @@
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="261">
<caret line="25" column="58" lean-forward="false" selection-start-line="25" selection-start-column="58" selection-end-line="25" selection-end-column="58" />
<folding />
</state>
</provider>
</entry>
... ... @@ -666,8 +674,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/application/api/controller/Pay.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="450">
<caret line="94" column="7" lean-forward="false" selection-start-line="94" selection-start-column="7" selection-end-line="94" selection-end-column="7" />
<state relative-caret-position="558">
<caret line="372" column="16" lean-forward="true" selection-start-line="372" selection-start-column="16" selection-end-line="372" selection-end-column="16" />
<folding>
<element signature="e#450#569#0#PHP" expanded="false" />
<element signature="e#575#888#0#PHP" expanded="false" />
... ... @@ -675,25 +683,26 @@
<element signature="e#2944#3362#0#PHP" expanded="false" />
<element signature="e#3367#7202#0#PHP" expanded="false" />
<element signature="e#7208#7628#0#PHP" expanded="false" />
<element signature="e#7633#11475#0#PHP" expanded="false" />
<element signature="e#11502#13401#0#PHP" expanded="false" />
<element signature="e#13430#14260#0#PHP" expanded="false" />
<element signature="e#14289#15122#0#PHP" expanded="false" />
<element signature="e#15145#15362#0#PHP" expanded="false" />
<element signature="e#7633#11473#0#PHP" expanded="false" />
<element signature="e#11500#13399#0#PHP" expanded="false" />
<element signature="e#13428#14258#0#PHP" expanded="false" />
<element signature="e#14287#15120#0#PHP" expanded="false" />
<element signature="e#15143#15360#0#PHP" expanded="false" />
</folding>
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/application/api/controller/User.php">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="25">
<caret line="748" column="41" lean-forward="false" selection-start-line="748" selection-start-column="41" selection-end-line="748" selection-end-column="41" />
<state relative-caret-position="182">
<caret line="1049" column="50" lean-forward="true" selection-start-line="1049" selection-start-column="50" selection-end-line="1049" selection-end-column="50" />
<folding>
<element signature="e#38#68#0#PHP" expanded="true" />
<element signature="e#337#456#0#PHP" expanded="false" />
<element signature="e#462#1200#0#PHP" expanded="false" />
<element signature="e#1205#2868#0#PHP" expanded="false" />
<element signature="e#2874#3402#0#PHP" expanded="false" />
<element signature="e#3407#4178#0#PHP" expanded="false" />
<element signature="e#4184#4591#0#PHP" expanded="false" />
<element signature="e#4596#4939#0#PHP" expanded="false" />
<element signature="e#4945#5782#0#PHP" expanded="false" />
... ... @@ -719,12 +728,16 @@
<element signature="e#21466#21824#0#PHP" expanded="false" />
<element signature="e#21829#22019#0#PHP" expanded="false" />
<element signature="e#22025#23168#0#PHP" expanded="false" />
<element signature="e#23173#25838#0#PHP" expanded="false" />
<element signature="e#25844#26335#0#PHP" expanded="false" />
<element signature="e#26340#27427#0#PHP" expanded="false" />
<element signature="e#27433#27967#0#PHP" expanded="false" />
<element signature="e#27972#28886#0#PHP" expanded="false" />
<element signature="e#28892#29423#0#PHP" expanded="false" />
<element signature="e#29428#30348#0#PHP" expanded="false" />
<element signature="e#29428#30347#0#PHP" expanded="false" />
<element signature="e#30353#31002#0#PHP" expanded="false" />
<element signature="e#31007#31880#0#PHP" expanded="false" />
<element signature="e#31886#32481#0#PHP" expanded="false" />
</folding>
</state>
</provider>
... ...
... ... @@ -201,7 +201,7 @@ class Pay extends Api
if(empty($type)){
$this->error(['code'=>2,'msg'=>'缺少必要参数']);
}
$data = Db::name('vorder')->where('id',$order_id)->find();
$data = Db::name('order')->where('id',$order_id)->find();
if($type == 1){
if($data){
if($data['status'] == 2){
... ... @@ -218,7 +218,7 @@ class Pay extends Api
Db::startTrans();
try{
$arr = Db::name('user')->where('id',$data['user_id'])->update(['money'=>$money]);
$res = Db::name('vorder')->where('id',$order_id)->update(['status'=>2,'paytime'=>time()]);
$res = Db::name('order')->where('id',$order_id)->update(['status'=>2,'paytime'=>time()]);
if($res && $arr){
true;
}else{
... ...
... ... @@ -908,7 +908,7 @@ class User extends Api
}else{
$param['createtime'] = time();
$param['num'] = date('Ymd').substr(implode(NULL, array_map('ord', str_split(substr(uniqid(), 7, 13), 1))), 0, 8);
$data = Db::name('vorder')
$data = Db::name('order')
->insertGetId($param);
if(empty($data)){
$this->error(['code'=>2,'msg'=>'sql执行失败']);
... ... @@ -917,4 +917,163 @@ class User extends Api
}
}
/**
* @ApiTitle (创建组合订单)
* @ApiSummary (创建组合订单)
* @ApiMethod (POST)
* @ApiRoute (/api/user/orders)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
*
* @ApiParams (name="video_id", type="string", required=true, description="视频ID")
* @ApiParams (name="pic_id", type="string", required=true, description="图片ID")
* @ApiParams (name="total", type="float", required=true, description="价格")
*
* @ApiReturn({
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"order_id"://订单ID
}
})
*/
public function orders()
{
$param['user_id'] = $this->uid;
$param['video_id'] = $this->request->post('video_id');
$param['pic_id'] = $this->request->post('pic_id');
$param['total'] = $this->request->post('total');
if(empty( $param['total'])){
$this->error(['code'=>2,'msg'=>'缺少必要参数']);
}elseif ( $param['total']<=0){
$this->error(['code'=>3,'msg'=>'非法操作']);
}else{
$param['createtime'] = time();
$param['num'] = date('Ymd').substr(implode(NULL, array_map('ord', str_split(substr(uniqid(), 7, 13), 1))), 0, 8);
$data = Db::name('order')
->insertGetId($param);
if(empty($data)){
$this->error(['code'=>2,'msg'=>'sql执行失败']);
}
$this->success('SUCCESS',['order_id'=>$data]);
}
}
/**
* @ApiTitle (我的订单)
* @ApiSummary (我的订单)
* @ApiMethod (POST)
* @ApiRoute (/api/user/myorder)
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
*
* @ApiParams (name="type", type="inter", required=false, description="状态(不传默认为全部 1为待支付 2为已完成)")
*
* @ApiReturn({
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"id": //用户ID
"pic_id": //图片,
"video_id": //视频,
"status" : //状态(1待支付 2已完成)
}
})
*/
public function myorder()
{
$user_id = $this->uid;
$rule = config('verify.path');
$type = $this->request->param('type');
if(empty($type)){
$res = Db::name('order')
->where('user_id',$user_id)
->field('id,pic_id,video_id,status')
->order('createtime desc,id desc')
->select();
foreach ($res as &$v){
if(!empty($v['pic_id'])){
$v['pic_id'] = explode(',',$v['pic_id']);
foreach ($v['pic_id'] as &$v1){
$v1 = Db::name('pic')->field('id,title,thumbnail,url,price')->where('id',$v1)->find();
$v1['thumbnail'] = $rule.$v1['thumbnail'];
$v1['vipprice'] = $v1['price']*0.75;
}
}
if(!empty($v['video_id'])){
$v['video_id'] = explode(',',$v['video_id']);
foreach ($v['video_id'] as &$v2){
$v2 = Db::name('video')->field('keyword,type_ids,content,is_recommend,buy_num,click_num,createtime,updatetime',true)->where('id',$v2)->find();
$v2['thumbnail'] = $rule.$v2['thumbnail'];
$v2['video'] = $rule.$v2['video'];
$v2['vipprice'] = $v2['price']*0.75;
$v2['four_vipprice'] = $v2['four_price'] * 0.75;
$v2['eight_vipprice'] = $v2['eight_price'] * 0.75;
}
}
}
$this->success('SUCCESS',$res);
}elseif ($type == 1){
$res = Db::name('order')
->where('user_id',$user_id)
->where('status',1)
->field('id,pic_id,video_id,status')
->order('createtime desc,id desc')
->select();
foreach ($res as &$v){
if(!empty($v['pic_id'])){
$v['pic_id'] = explode(',',$v['pic_id']);
foreach ($v['pic_id'] as &$v1){
$v1 = Db::name('pic')->field('id,title,thumbnail,url,price')->where('id',$v1)->find();
$v1['thumbnail'] = $rule.$v1['thumbnail'];
$v1['vipprice'] = $v1['price']*0.75;
}
}
if(!empty($v['video_id'])){
$v['video_id'] = explode(',',$v['video_id']);
foreach ($v['video_id'] as &$v2){
$v2 = Db::name('video')->field('keyword,type_ids,content,is_recommend,buy_num,click_num,createtime,updatetime',true)->where('id',$v2)->find();
$v2['thumbnail'] = $rule.$v2['thumbnail'];
$v2['video'] = $rule.$v2['video'];
$v2['vipprice'] = $v2['price']*0.75;
$v2['four_vipprice'] = $v2['four_price'] * 0.75;
$v2['eight_vipprice'] = $v2['eight_price'] * 0.75;
}
}
}
$this->success('SUCCESS',$res);
}else{
$res = Db::name('order')
->where('user_id',$user_id)
->where('status',2)
->field('id,pic_id,video_id,status')
->order('createtime desc,id desc')
->select();
foreach ($res as &$v){
if(!empty($v['pic_id'])){
$v['pic_id'] = explode(',',$v['pic_id']);
foreach ($v['pic_id'] as &$v1){
$v1 = Db::name('pic')->field('id,title,thumbnail,url,price')->where('id',$v1)->find();
$v1['thumbnail'] = $rule.$v1['thumbnail'];
$v1['vipprice'] = $v1['price']*0.75;
}
}
if(!empty($v['video_id'])){
$v['video_id'] = explode(',',$v['video_id']);
foreach ($v['video_id'] as &$v2){
$v2 = Db::name('video')->field('keyword,type_ids,content,is_recommend,buy_num,click_num,createtime,updatetime',true)->where('id',$v2)->find();
$v2['thumbnail'] = $rule.$v2['thumbnail'];
$v2['video'] = $rule.$v2['video'];
$v2['vipprice'] = $v2['price']*0.75;
$v2['four_vipprice'] = $v2['four_price'] * 0.75;
$v2['eight_vipprice'] = $v2['eight_price'] * 0.75;
}
}
}
$this->success('SUCCESS',$res);
}
}
}
... ...
... ... @@ -162,15 +162,17 @@
<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="11" class="list-group-item">小程序登录</a>
<a href="javascript:;" data-id="21" class="list-group-item">我的</a>
<a href="javascript:;" data-id="22" class="list-group-item">创建充值订单</a>
<a href="javascript:;" data-id="29" class="list-group-item">创建组合订单</a>
<a href="javascript:;" data-id="28" class="list-group-item">创建视频订单</a>
<a href="javascript:;" data-id="27" class="list-group-item">创建图片订单</a>
<a href="javascript:;" data-id="26" class="list-group-item">加入购物车</a>
<a href="javascript:;" data-id="25" class="list-group-item">购物车列表</a>
<a href="javascript:;" data-id="24" class="list-group-item">会员须知</a>
<a href="javascript:;" data-id="23" class="list-group-item">会员介绍</a>
<a href="javascript:;" data-id="22" class="list-group-item">创建充值订单</a>
<a href="javascript:;" data-id="20" class="list-group-item">历史记录</a>
<a href="javascript:;" data-id="21" class="list-group-item">我的</a>
<a href="javascript:;" data-id="12" class="list-group-item">首页视频、图片、精美大片入口</a>
<a href="javascript:;" data-id="20" class="list-group-item">历史记录</a>
<a href="javascript:;" data-id="19" class="list-group-item">视频详情</a>
<a href="javascript:;" data-id="18" class="list-group-item">图片详情</a>
<a href="javascript:;" data-id="17" class="list-group-item">精美大片列表</a>
... ... @@ -178,7 +180,7 @@
<a href="javascript:;" data-id="15" class="list-group-item">图片列表</a>
<a href="javascript:;" data-id="14" class="list-group-item">搜索页</a>
<a href="javascript:;" data-id="13" class="list-group-item">地区分类</a>
<a href="javascript:;" data-id="28" class="list-group-item">创建视频订单</a>
<a href="javascript:;" data-id="30" class="list-group-item">我的订单</a>
</div>
</div>
</div>
... ... @@ -1559,28 +1561,338 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-21">
<div class="panel-heading" id="heading-22">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion21" href="#collapseOne21"> 我的 <span class="text-muted">/api/user/mine</span></a>
<a data-toggle="collapse" data-parent="#accordion22" href="#collapseOne22"> 创建充值订单 <span class="text-muted">/api/user/toporder</span></a>
</h4>
</div>
<div id="collapseOne21" class="panel-collapse collapse">
<div id="collapseOne22" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab21">
<li class="active"><a href="#info21" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox21" data-toggle="tab">在线测试</a></li>
<li><a href="#sample21" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab22">
<li class="active"><a href="#info22" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox22" data-toggle="tab">在线测试</a></li>
<li><a href="#sample22" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info21">
<div class="tab-pane active" id="info22">
<div class="well">
我的 </div>
创建充值订单 </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>money</td>
<td>float</td>
<td></td>
<td>充值金额</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="sandbox22">
<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/user/toporder" method="POST" name="form22" id="form22">
<div class="form-group">
<label class="control-label" for="money">money</label>
<input type="float" class="form-control input-sm" id="money" required placeholder="充值金额" name="money">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="22">提交</button>
<button type="reset" class="btn btn-info" rel="22">重置</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_headers22"></pre>
<pre id="response22"></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="sample22">
<div class="row">
<div class="col-md-12">
<pre id="sample_response22">{
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"order_id"://订单ID
}
}</pre>
</div>
</div>
</div><!-- #sample -->
</div><!-- .tab-content -->
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-29">
<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/orders</span></a>
</h4>
</div>
<div id="collapseOne29" 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>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info29">
<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>video_id</td>
<td>string</td>
<td></td>
<td>视频ID</td>
</tr>
<tr>
<td>pic_id</td>
<td>string</td>
<td></td>
<td>图片ID</td>
</tr>
<tr>
<td>total</td>
<td>float</td>
<td></td>
<td>价格</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="sandbox29">
<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/user/orders" method="POST" name="form29" id="form29">
<div class="form-group">
<label class="control-label" for="video_id">video_id</label>
<input type="string" class="form-control input-sm" id="video_id" required placeholder="视频ID" name="video_id">
</div>
<div class="form-group">
<label class="control-label" for="pic_id">pic_id</label>
<input type="string" class="form-control input-sm" id="pic_id" required placeholder="图片ID" name="pic_id">
</div>
<div class="form-group">
<label class="control-label" for="total">total</label>
<input type="float" class="form-control input-sm" id="total" required placeholder="价格" name="total">
</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>
</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_headers29"></pre>
<pre id="response29"></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="sample29">
<div class="row">
<div class="col-md-12">
<pre id="sample_response29">{
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"order_id"://订单ID
}
}</pre>
</div>
</div>
</div><!-- #sample -->
</div><!-- .tab-content -->
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-28">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion28" href="#collapseOne28"> 创建视频订单 <span class="text-muted">/api/user/v_order</span></a>
</h4>
</div>
<div id="collapseOne28" 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>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info28">
<div class="well">
创建视频订单 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
... ... @@ -1595,29 +1907,52 @@
</thead>
<tbody>
<tr>
<td>token</td>
<td>string</td>
<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>video_id</td>
<td>inter</td>
<td></td>
<td>视频ID</td>
</tr>
<tr>
<td>total</td>
<td>float</td>
<td></td>
<td>请求的Token</td>
<td>价格</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 class="panel panel-default">
<div class="panel-heading"><strong>正文</strong></div>
<div class="panel-body">
</div>
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox21">
<div class="tab-pane" id="sandbox28">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -1634,13 +1969,18 @@
<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/mine" method="POST" name="form21" id="form21">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/v_order" method="POST" name="form28" id="form28">
<div class="form-group">
<label class="control-label" for="video_id">video_id</label>
<input type="inter" class="form-control input-sm" id="video_id" required placeholder="视频ID" name="video_id">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="21">提交</button>
<button type="reset" class="btn btn-info" rel="21">重置</button>
<label class="control-label" for="total">total</label>
<input type="float" class="form-control input-sm" id="total" required placeholder="价格" name="total">
</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>
</div>
</form>
</div>
... ... @@ -1650,8 +1990,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers21"></pre>
<pre id="response21"></pre>
<pre id="response_headers28"></pre>
<pre id="response28"></pre>
</div>
</div>
</div>
... ... @@ -1666,19 +2006,17 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample21">
<div class="tab-pane" id="sample28">
<div class="row">
<div class="col-md-12">
<pre id="sample_response21">{
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"id": //用户ID
"nickname": //昵称,
"avatar": //头像,
"money" : //余额
"is_vip": //是否为会员(0否 1是</pre>
<pre id="sample_response28">{
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"order_id"://订单ID
}
}</pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -2402,28 +2740,28 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-22">
<div class="panel-heading" id="heading-21">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion22" href="#collapseOne22"> 创建充值订单 <span class="text-muted">/api/user/toporder</span></a>
<a data-toggle="collapse" data-parent="#accordion21" href="#collapseOne21"> 我的 <span class="text-muted">/api/user/mine</span></a>
</h4>
</div>
<div id="collapseOne22" class="panel-collapse collapse">
<div id="collapseOne21" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab22">
<li class="active"><a href="#info22" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox22" data-toggle="tab">在线测试</a></li>
<li><a href="#sample22" data-toggle="tab">返回示例</a></li>
<ul class="nav nav-tabs" id="doctab21">
<li class="active"><a href="#info21" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox21" data-toggle="tab">在线测试</a></li>
<li><a href="#sample21" data-toggle="tab">返回示例</a></li>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div class="tab-pane active" id="info22">
<div class="tab-pane active" id="info21">
<div class="well">
创建充值订单 </div>
我的 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
... ... @@ -2450,24 +2788,7 @@
<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>money</td>
<td>float</td>
<td></td>
<td>充值金额</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel panel-default">
... ... @@ -2477,7 +2798,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox22">
<div class="tab-pane" id="sandbox21">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -2494,14 +2815,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/toporder" method="POST" name="form22" id="form22">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/mine" method="POST" name="form21" id="form21">
<div class="form-group">
<label class="control-label" for="money">money</label>
<input type="float" class="form-control input-sm" id="money" required placeholder="充值金额" name="money">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="22">提交</button>
<button type="reset" class="btn btn-info" rel="22">重置</button>
<button type="submit" class="btn btn-success send" rel="21">提交</button>
<button type="reset" class="btn btn-info" rel="21">重置</button>
</div>
</form>
</div>
... ... @@ -2511,8 +2831,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers22"></pre>
<pre id="response22"></pre>
<pre id="response_headers21"></pre>
<pre id="response21"></pre>
</div>
</div>
</div>
... ... @@ -2527,17 +2847,19 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample22">
<div class="tab-pane" id="sample21">
<div class="row">
<div class="col-md-12">
<pre id="sample_response22">{
<pre id="sample_response21">{
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"order_id"://订单ID
}
}</pre>
"id": //用户ID
"nickname": //昵称,
"avatar": //头像,
"money" : //余额
"is_vip": //是否为会员(0否 1是</pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -2547,28 +2869,28 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-20">
<div class="panel-heading" id="heading-12">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion20" href="#collapseOne20"> 历史记录 <span class="text-muted">/api/user/history</span></a>
<a data-toggle="collapse" data-parent="#accordion12" href="#collapseOne12"> 首页视频、图片、精美大片入口 <span class="text-muted">/api/user/index</span></a>
</h4>
</div>
<div id="collapseOne20" class="panel-collapse collapse">
<div id="collapseOne12" class="panel-collapse collapse">
<div class="panel-body">
<!-- Nav tabs -->
<ul class="nav nav-tabs" id="doctab20">
<li class="active"><a href="#info20" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox20" data-toggle="tab">在线测试</a></li>
<li><a href="#sample20" 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="info20">
<div class="tab-pane active" id="info12">
<div class="well">
历史记录 </div>
首页视频、图片、精美大片入口 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
... ... @@ -2605,7 +2927,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox20">
<div class="tab-pane" id="sandbox12">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -2622,13 +2944,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/history" method="POST" name="form20" id="form20">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/index" method="POST" name="form12" id="form12">
<div class="form-group">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="20">提交</button>
<button type="reset" class="btn btn-info" rel="20">重置</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>
... ... @@ -2638,8 +2960,8 @@
<div class="panel-body">
<div class="row">
<div class="col-md-12" style="overflow-x:auto">
<pre id="response_headers20"></pre>
<pre id="response20"></pre>
<pre id="response_headers12"></pre>
<pre id="response12"></pre>
</div>
</div>
</div>
... ... @@ -2654,17 +2976,18 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample20">
<div class="tab-pane" id="sample12">
<div class="row">
<div class="col-md-12">
<pre id="sample_response20">{
"code": 1,
"msg": "成功",
<pre id="sample_response12">{
'code':'1',
'msg':'返回成功',
"time": "1571492001",
"data": {
"id": 4,//记录id,
"title"://搜索的内容
}
"data": {
"video_thumbnail": http://mapwww.baidu.com 视频封面图地址
"pic_thumbnail": http://mapwww.baidu.com 图片地址
"wonderful_thumbnail": http://mapwww.baidu.com 精美大片地址
}
}</pre>
</div>
</div>
... ... @@ -2675,28 +2998,28 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-12">
<div class="panel-heading" id="heading-20">
<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/user/index</span></a>
<a data-toggle="collapse" data-parent="#accordion20" href="#collapseOne20"> 历史记录 <span class="text-muted">/api/user/history</span></a>
</h4>
</div>
<div id="collapseOne12" class="panel-collapse collapse">
<div id="collapseOne20" 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="doctab20">
<li class="active"><a href="#info20" data-toggle="tab">基础信息</a></li>
<li><a href="#sandbox20" data-toggle="tab">在线测试</a></li>
<li><a href="#sample20" 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="info20">
<div class="well">
首页视频、图片、精美大片入口 </div>
历史记录 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
... ... @@ -2733,7 +3056,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox12">
<div class="tab-pane" id="sandbox20">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -2750,13 +3073,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/index" method="POST" name="form12" id="form12">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/history" method="POST" name="form20" id="form20">
<div class="form-group">
</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="20">提交</button>
<button type="reset" class="btn btn-info" rel="20">重置</button>
</div>
</form>
</div>
... ... @@ -2766,8 +3089,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_headers20"></pre>
<pre id="response20"></pre>
</div>
</div>
</div>
... ... @@ -2782,18 +3105,17 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample12">
<div class="tab-pane" id="sample20">
<div class="row">
<div class="col-md-12">
<pre id="sample_response12">{
'code':'1',
'msg':'返回成功',
<pre id="sample_response20">{
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"video_thumbnail": http://mapwww.baidu.com 视频封面图地址
"pic_thumbnail": http://mapwww.baidu.com 图片地址
"wonderful_thumbnail": http://mapwww.baidu.com 精美大片地址
}
"data": {
"id": 4,//记录id,
"title"://搜索的内容
}
}</pre>
</div>
</div>
... ... @@ -3910,28 +4232,28 @@
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" id="heading-28">
<div class="panel-heading" id="heading-30">
<h4 class="panel-title">
<span class="label label-primary">POST</span>
<a data-toggle="collapse" data-parent="#accordion28" href="#collapseOne28"> 创建视频订单 <span class="text-muted">/api/user/v_order</span></a>
<a data-toggle="collapse" data-parent="#accordion30" href="#collapseOne30"> 我的订单 <span class="text-muted">/api/user/myorder</span></a>
</h4>
</div>
<div id="collapseOne28" class="panel-collapse collapse">
<div id="collapseOne30" 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="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="info28">
<div class="tab-pane active" id="info30">
<div class="well">
创建视频订单 </div>
我的订单 </div>
<div class="panel panel-default">
<div class="panel-heading"><strong>Headers</strong></div>
<div class="panel-body">
... ... @@ -3969,16 +4291,10 @@
</thead>
<tbody>
<tr>
<td>video_id</td>
<td>type</td>
<td>inter</td>
<td></td>
<td>视频ID</td>
</tr>
<tr>
<td>total</td>
<td>float</td>
<td></td>
<td>价格</td>
<td></td>
<td>状态(不传默认为全部 1为待支付 2为已完成</td>
</tr>
</tbody>
</table>
... ... @@ -3991,7 +4307,7 @@
</div>
</div><!-- #info -->
<div class="tab-pane" id="sandbox28">
<div class="tab-pane" id="sandbox30">
<div class="row">
<div class="col-md-12">
<div class="panel panel-default">
... ... @@ -4008,18 +4324,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/v_order" method="POST" name="form28" id="form28">
<div class="form-group">
<label class="control-label" for="video_id">video_id</label>
<input type="inter" class="form-control input-sm" id="video_id" required placeholder="视频ID" name="video_id">
</div>
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/user/myorder" method="POST" name="form30" id="form30">
<div class="form-group">
<label class="control-label" for="total">total</label>
<input type="float" class="form-control input-sm" id="total" required placeholder="价格" name="total">
<label class="control-label" for="type">type</label>
<input type="inter" class="form-control input-sm" id="type" placeholder="状态(不传默认为全部 1为待支付 2为已完成" name="type">
</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="30">提交</button>
<button type="reset" class="btn btn-info" rel="30">重置</button>
</div>
</form>
</div>
... ... @@ -4029,8 +4341,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_headers30"></pre>
<pre id="response30"></pre>
</div>
</div>
</div>
... ... @@ -4045,17 +4357,18 @@
</div>
</div><!-- #sandbox -->
<div class="tab-pane" id="sample28">
<div class="tab-pane" id="sample30">
<div class="row">
<div class="col-md-12">
<pre id="sample_response28">{
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"order_id"://订单ID
}
}</pre>
<pre id="sample_response30">{
"code": 1,
"msg": "成功",
"time": "1571492001",
"data": {
"id": //用户ID
"pic_id": //图片,
"video_id": //视频,
"status" : //状态(1待支付 2已完成</pre>
</div>
</div>
</div><!-- #sample -->
... ... @@ -4070,7 +4383,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2019-11-20 20:20:24 </div>
Generated on 2019-11-20 22:45:23 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...