簡要描述
請求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 |
倒計時時間 |