...
|
...
|
@@ -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;
|
...
|
...
|
|