简要描述
请求url
https://www.商城域名.com/index.php?s=/api/sharp.goods/detail
请求方式
是否需授权登录
请求header
参数名 |
类型 |
是否必须 |
示例值 |
说明 |
storeId |
int |
必填 |
10001 |
商城ID |
platform |
string |
必填 |
H5 |
当前请求的客户端(APP、小程序、H5等) |
Access-Token |
string |
选填 |
- |
当前登录用户的 Token |
请求参数
参数名 |
类型 |
是否必须 |
示例值 |
说明 |
activeTimeId |
int |
必填 |
10120 |
活动场次ID |
sharpGoodsId |
int |
必填 |
10028 |
秒杀商品ID |
返回示例
{
"status": 200,
"message": "success",
"data": {
"active": {
"active_id": 10027,
"active_time_id": 10120,
"active_time": "20:00",
"sales_actual": 56,
"start_time": "2022-02-28 20:00",
"end_time": "2022-02-28 21:00",
"active_status": 10,
"count_down_time": "2022-02-28 21:00"
},
"goods": {
"goods_id": 10018,
"goods_name": "简约风条纹客厅沙发卧室床头抱枕靠垫套",
"goods_no": "",
"video_id": 0,
"video_cover_id": 0,
"selling_point": "",
"spec_type": 10,
"goods_price_min": "48.90",
"goods_price_max": "48.90",
"line_price_min": "129.00",
"line_price_max": "129.00",
"stock_total": 80002,
"content": "",
"delivery_id": 10001,
"is_points_gift": 1,
"is_points_discount": 1,
"is_alone_points_discount": 0,
"points_discount_config": "",
"is_enable_grade": 1,
"is_alone_grade": 0,
"alone_grade_equity": [],
"status": 10,
"is_ind_dealer": 0,
"dealer_money_type": 10,
"first_money": "0.00",
"second_money": "0.00",
"third_money": "0.00",
"goods_images": [
{
"file_id": 10389,
"file_type": 10,
"preview_url": "41cdb778199f99ebebb6090680f382fc.png"
},
{
"file_id": 10360,
"file_type": 10,
"preview_url": "00685226122856216d9940344bc6521a.jpg"
},
{
"file_id": 10362,
"file_type": 10,
"preview_url": "21ee2b1a9d901d4ce942b98f62e1cc0e.jpg"
},
{
"file_id": 10361,
"file_type": 10,
"preview_url": "4e93cdaee2a7d1fd4e14a99e9a3a7689.jpg"
}
],
"goods_image": "41cdb778199f99ebebb6090680f382fc.png",
"goods_sales": 190,
"is_user_grade": true,
"specList": [],
"sharp_goods_id": 10028,
"seckill_price": "12.90",
"original_price": "48.90",
"limit_num": 999,
"seckill_stock": 99,
"total_sales": 4,
"skuList": [
{
"id": 10662,
"goods_sku_id": "0",
"goods_id": 10018,
"image_id": 0,
"goods_sku_no": "",
"goods_price": "48.90",
"line_price": "129.00",
"stock_num": 80002,
"goods_weight": 0.8,
"goods_props": null,
"spec_value_ids": null,
"image_url": null,
"original_price": "48.90",
"seckill_price": "12.90",
"seckill_stock": 99
}
],
"progress": 56,
"video": null,
"videoCover": null
}
}
}
返回参数
参数名 |
类型 |
示例值 |
说明 |
status |
int |
200 |
请求状态(200:请求成功;500:请求错误/失败) |
message |
string |
success |
请求结果的信息,默认为 success |
data |
object |
- |
返回的业务数据 |
data 参数
参数名 |
类型 |
示例值 |
说明 |
active |
object |
- |
秒杀活动信息 |
goods |
object |
- |
商品信息;可参考 “商品详情(详细)” API |
data.active 参数
参数名 |
类型 |
示例值 |
说明 |
active_id |
int |
10027 |
秒杀活动ID |
active_time_id |
int |
10120 |
秒杀场次ID |
active_time |
string |
20:00 |
场次时间 (0点-23点) |
sales_actual |
int |
56 |
活动销量 |
start_time |
string |
2022-02-28 20:00 |
开始时间 |
end_time |
string |
2022-02-28 21:00 |
结束时间 |
active_status |
int |
10 |
活动状态(10已开始 20未开始 30已结束) |
count_down_time |
string |
2022-02-28 21:00 |
倒计时时间 |