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

新增图片接口优化

... ... @@ -659,7 +659,6 @@ class Index extends Api
* @ApiRoute (/api/index/imagelist)
*
* @ApiHeaders (name=token, type=string, required=true, description="请求的Token")
* @ApiParams (name="fenlei", type="inter", required=true, description="分类id笔记1 图片2 视频3")
*
* @ApiReturn({
"code": 1,
... ... @@ -692,10 +691,7 @@ class Index extends Api
public function imagelist()
{
$user_id = $this->auth->id;
$type_id = $this->request->param('fenlei');
if(empty($type_id)){
$this->error('缺少必要参数');
}
$type_id = 2;
$where['user_id'] = ['eq',$user_id];
$tiao['a.user_id'] = ['eq',$user_id];
$tiao['b.is_up'] = 1;
... ...
... ... @@ -6642,24 +6642,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>fenlei</td>
<td>inter</td>
<td></td>
<td>分类id笔记1 图片2 视频3</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="panel panel-default">
... ... @@ -6688,8 +6671,7 @@
<div class="panel-body">
<form enctype="application/x-www-form-urlencoded" role="form" action="/api/index/imagelist" method="POST" name="form36" id="form36">
<div class="form-group">
<label class="control-label" for="fenlei">fenlei</label>
<input type="inter" class="form-control input-sm" id="fenlei" required placeholder="分类id笔记1 图片2 视频3" name="fenlei">
</div>
<div class="form-group">
<button type="submit" class="btn btn-success send" rel="36">提交</button>
... ... @@ -10206,7 +10188,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-09-02 11:02:56 </div>
Generated on 2020-09-02 11:11:08 </div>
<div class="col-md-6" align="right">
<a href="./" target="_blank">彩云盘</a>
</div>
... ...