💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 主页获取随机商品 >[info]接口认证:**不需要认证** ##### 响应说明 | 字段名 | 字段类型 | 字段说明 | | --- | --- | --- | | has_more | boolean | 是否还有下一页 | | list | array[goods(object)] | 商品列表 | | goods.id | int | 商品id | | goods.goods_name | string | 商品名 | | goods.goods_image | string | 商品图片 | | goods.unpublished_at | sting | 下架时间(结束时间),未设置的时候是"",设置的话是时间格式如"2022-01-31 10:00:38" | | goods.shop_price | int | 商品价格(分),有计算的需要的话可以用这个 | | goods.shop_price_foormat | string | 商品价格,已格式化好的,展示使用 | | goods.market_price | int | 市场价格(分),有计算的需要的话可以用这个 | | goods.market_price_foormat | string | 市场价格,已格式化好的,展示使用 | | goods.cost_price | int | 成本价格(分),有计算的需要的话可以用这个 | | goods.cost_price_foormat | string | 成本价格,已格式化好的,展示使用 | | goods.activity_info.activity_score | float | 收益积分(%) | | goods.activity_info.wholesale_limit | int | 批发限购 | | goods.activity_info.group_buying_limit| int | 团购限购 | | goods.activity_info.group_buying_scale| int | 团购参团人数 | | goods.activity_info.gold_vip_score| int | 养老积分抵扣 | | goods.activity_type | int | 商品活动类型,另外列出 | ##### 商品活动类型 ```php public const ACTIVITY_TYPE_TRANS = [ 0 => "普通", 1 => '活动', 2 => '批发', 3 => '团购', 4 => '黄金会员专区', 5 => '提现配额专区', 6 => '0元体验', ]; ``` ##### api说明 ~~~[api] get:/goods/list/home <<< success { "code": 200, "msg": "成功", "data": [ { "id": 11, "goods_name": "测试9", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220107/goods_image-61d7ea362c5bb.png", "shop_price": 100, "activity_type": 0, "market_price": 0, "cost_price": 0, "unpublished_at": "", "activity_info": { "activity_score": 20, "wholesale_limit": 0, "group_buying_limit": 0, "group_buying_scale": 0, "gold_vip_score": 0 }, "shop_price_format": "1.00", "market_price_format": "0.00", "cost_price_format": "0.00" }, { "id": 12, "goods_name": "测试10", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220107/goods_image-61d7ea483d178.png", "shop_price": 100, "activity_type": 0, "market_price": 0, "cost_price": 0, "unpublished_at": "", "activity_info": { "activity_score": 20, "wholesale_limit": 0, "group_buying_limit": 0, "group_buying_scale": 0, "gold_vip_score": 0 }, "shop_price_format": "1.00", "market_price_format": "0.00", "cost_price_format": "0.00" }, { "id": 19, "goods_name": "活-飞科男士电动剃须刀-10-100", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db8b7e49c86.jpg", "shop_price": 288000, "activity_type": 1, "market_price": 388000, "cost_price": 288000, "unpublished_at": "", "activity_info": { "activity_score": 10, "wholesale_limit": 0, "group_buying_limit": 0, "group_buying_scale": 0, "gold_vip_score": 0 }, "shop_price_format": "2880.00", "market_price_format": "3880.00", "cost_price_format": "2880.00" }, { "id": 21, "goods_name": "黄金-五谷丰登紫砂家用功夫茶具套装", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db93bc60032.jpg", "shop_price": 499900, "activity_type": 4, "market_price": 944400, "cost_price": 30000, "unpublished_at": "2022-01-31 10:00:38", "activity_info": { "activity_score": 20, "wholesale_limit": 0, "group_buying_limit": 0, "group_buying_scale": 0, "gold_vip_score": 500 }, "shop_price_format": "4999.00", "market_price_format": "9444.00", "cost_price_format": "300.00" }, { "id": 13, "goods_name": "活-行李箱万向轮皮箱20寸-20-100", "goods_image": "http://noobcoder.oss-cn-hangzhou.aliyuncs.com/letao/20220110/goods_image-61db89daaa501.jpg", "shop_price": 1200, "activity_type": 1, "market_price": 1500, "cost_price": 1000, "unpublished_at": "", "activity_info": { "activity_score": 20, "wholesale_limit": 0, "group_buying_limit": 0, "group_buying_scale": 0, "gold_vip_score": 0 }, "shop_price_format": "12.00", "market_price_format": "15.00", "cost_price_format": "10.00" } ] } ~~~