文档
测试

获取单分类商品列表

POST
portal/Lists/getCategoryGoodsLists

接口描述

仅支持单个分类筛选,主要是使用在手机版-》列表页自驾游可进行筛选用的接口

请求参数

参数名
类型
描述
必填
category_id
int
填写商品分类筛选
必填
page
int
1
必填
order
string
-post.price
可选
where[post.city_id]
string
299
可选
where[post.area_id]
string
3109
可选
theme_where:
string
农趣体验
可选
other_select[tourist_days]
string
天数
可选
other_select[people_number]
string
可玩人数
可选
other_select[minPrice]
string
最小价格
可选
other_select[maxPrice]
string
最大价格
可选
orderRaw
string
rand() 就是随机输出
可选
tp_count
true 即可 判断存在才有这个字段获取总产品数量
可选
lat_lon
22.72458,114.18303 ,如果需要距离排序
可选
order
-distance 最远距离 ,+distance最近距离
可选
limit
条目 默认20个
可选

filed的字段优化

field:'id,articles.id,user_id, post_id, post_type, comment_status,is_top, recommended, post_hits, post_like, post_favorites,comment_count,create_time,update_time,published_time, post_title, post_keywords,post_excerpt, post_source, more, user_nickname,user, category_id, price, int_price, unit, address, totalsales,province_id,city_id,area_id, people_number,store_id'; 这个筛选出 只要的输出的数据,减少接口多余输出 ,可提高N倍的数据 主要过滤post_content_m 和post_conent