文档
测试

商品详情

POST
http://test.ywzyit.com/api.html

请求参数

参数名
类型
描述
必填
token
string
示例:de6d8a1d7ae1116e6ecc1a6704934a84
必填
method
string
示例:goods.getdetial
必填
site_token
int
示例:123456
必填
id
int
示例:1484
必填

响应参数

参数名
类型
描述
必填
status
boolean
示例:true
必填
msg
string
示例:查询成功
必填
data
object
数据字典
必填
id
int
示例:1484
必填
bn
string
示例:G6079284369405
必填
name
string
商品名称,示例:冬季可爱超萌小熊帽子围巾一体两件套加厚毛绒保暖围脖
必填
brief
string
示例:
必填
price
string
非会员价,示例:22.90
必填
costprice
string
会员价,示例:21.90
必填
mktprice
string
示例:0.00
必填
image_id
string
示例:b4c8a454833f248d15323287c6ff030e
必填
goods_cat_id
int
示例:103
必填
goods_type_id
int
示例:88
必填
brand_id
int
示例:0
必填
is_nomal_virtual
int
示例:1
必填
marketable
int
示例:1
必填
stock
int
示例:786
必填
weight
string
示例:0.00
必填
unit
string
示例:
必填
intro
string
示例:<p style='overflow:hidden'><img style='max-width: 100%;float:left' src="http://img.ywzyit.com/static/uploads/images/2020/12/14/16079284235fd70a6779148.jpg"/></p><p style='overflow:hidden'><img style='max-width: 100%;float:left' src="http://img.ywzyit.com/static/uploads/images/2020/12/14/16079284235fd70a67837dd.jpg"/></p><p style='overflow:hidden'><img style='max-width: 100%;float:left' src=...,
必填
spes_desc
object
数据字典
必填
颜色
object
数据字典
必填
193144
string
示例:咖色小熊围巾
必填
193145
string
示例:米色小熊围巾
必填
193146
string
示例:灰色小熊围巾
必填
193147
string
示例:白色小熊围巾
必填
params
string
示例:
必填
service
array
服务承诺,数据列表
必填
id
int
示例:1
必填
title
string
示例:正品保证
必填
content
string
示例:本店郑重保证,本店所有商品一律为正品,若购买到假冒商品,双倍赔偿。
必填
comments_count
int
示例:0
必填
view_count
int
示例:0
必填
buy_count
int
销量,示例:14
必填
xuni_num
object
示例:null
必填
uptime
object
示例:null
必填
downtime
object
示例:null
必填
sort
int
示例:0
必填
is_recommend
int
示例:2
必填
is_hot
int
示例:1
必填
is_tqm
int
示例:1
必填
success_num
int
示例:0
必填
start_time
string
示例:1970-01-01 08:00
必填
end_time
string
示例:1970-01-01 08:00
必填
label_ids
array
数据列表
必填
new_spec
string
示例:a:154:{i:193143;a:1:{i:0;s:40:"牛仔蓝+紫色+咖啡色+姜黄+绿色";}i:193144;a:1:{i:0;s:18:"咖色小熊围巾";}i:193145;a:1:{i:0;s:18:"米色小熊围巾";}i:193146;a:1:{i:0;s:18:"灰色小熊围巾";}i:193147;a:1:{i:0;s:18:"白色小熊围巾";}i:193148;a:1:{i:0;s:25:"四叉眉笔1号浅棕色";}i:193149;a:1:{i:0;s:25:"四叉眉笔2号深棕色";}i:193150;a:1:{i:0;s:25:"四叉眉笔3号红棕色";}i:193151;a:1:{i:0;s:25:"四叉眉笔4号灰棕色";}i:193152;a:1:{i:0;s:22:"四叉眉笔5号黑色";}i:193153;a:1:{i:0;s:16:"双头1号黑色";...
必填
ctime
object
示例:null
必填
utime
int
示例:1607928450
必填
isdel
object
示例:null
必填
commission
string
示例:0.00
必填
recommend_goods_id
int
示例:0
必填
want_goods_id
int
示例:0
必填
buy_limit
int
示例:0
必填
brand_name
object
示例:null
必填
cat_name
string
示例:围巾
必填
products
array
商品规格数据,数据列表
必填
id
int
示例:9297
必填
goods_id
int
示例:1484
必填
barcode
object
示例:null
必填
sn
string
示例:P6079284369500
必填
price
string
示例:22.90
必填
costprice
string
示例:21.90
必填
mktprice
string
示例:0.00
必填
marketable
int
示例:2
必填
stock
int
示例:189
必填
freeze_stock
int
示例:0
必填
spes_desc
string
示例:颜色:咖色小熊围巾
必填
is_defalut
int
示例:1
必填
image_id
string
示例:cc51ddaab07a7a7dfb25471eb27a62fc
必填
isdel
object
示例:null
必填
name
string
示例:冬季可爱超萌小熊帽子围巾一体两件套加厚毛绒保暖围脖
必填
buy_limit
int
示例:0
必填
bn
string
示例:G6079284369405
必填
image_path
string
示例:http://img.ywzyit.com/static/uploads/images/2020/12/14/16079283725fd70a3467c59.jpg
必填
total_stock
int
示例:189
必填
grade_price
array
数据列表
必填
grade_info
array
数据列表
必填
default_spes_desc
object
多规格数据,数据字典
必填
颜色
object
数据字典
必填
咖色小熊围巾
object
数据字典
必填
name
string
示例:咖色小熊围巾
必填
is_default
boolean
示例:true
必填
米色小熊围巾
object
数据字典
必填
name
string
示例:米色小熊围巾
必填
product_id
int
规格ID,示例:9298
必填
灰色小熊围巾
object
数据字典
必填
name
string
示例:灰色小熊围巾
必填
product_id
int
示例:9299
必填
白色小熊围巾
object
数据字典
必填
name
string
示例:白色小熊围巾
必填
product_id
int
示例:9300
必填
amount
string
示例:22.90
必填
promotion_list
array
数据列表
必填
promotion_amount
int
示例:0
必填
image_url
string
示例:http://img.ywzyit.com/static/uploads/images/2020/12/14/16079282915fd709e3efe2c.jpg
必填
default
object
数据字典
必填
id
int
示例:9297
必填
goods_id
int
示例:1484
必填
barcode
object
示例:null
必填
sn
string
示例:P6079284369500
必填
price
string
示例:22.90
必填
costprice
string
示例:21.90
必填
mktprice
string
示例:0.00
必填
marketable
int
示例:2
必填
stock
int
示例:189
必填
freeze_stock
int
示例:0
必填
spes_desc
string
示例:颜色:咖色小熊围巾
必填
is_defalut
int
示例:1
必填
image_id
string
示例:cc51ddaab07a7a7dfb25471eb27a62fc
必填
isdel
object
示例:null
必填
name
string
示例:冬季可爱超萌小熊帽子围巾一体两件套加厚毛绒保暖围脖
必填
buy_limit
int
示例:0
必填
bn
string
示例:G6079284369405
必填
image_path
string
示例:http://img.ywzyit.com/static/uploads/images/2020/12/14/16079283725fd70a3467c59.jpg
必填
total_stock
int
示例:189
必填
grade_price
array
数据列表
必填
grade_info
array
数据列表
必填
default_spes_desc
object
数据字典
必填
颜色
object
数据字典
必填
咖色小熊围巾
object
数据字典
必填
name
string
示例:咖色小熊围巾
必填
is_default
boolean
示例:true
必填
米色小熊围巾
object
数据字典
必填
name
string
示例:米色小熊围巾
必填
product_id
int
示例:9298
必填
灰色小熊围巾
object
数据字典
必填
name
string
示例:灰色小熊围巾
必填
product_id
int
示例:9299
必填
白色小熊围巾
object
数据字典
必填
name
string
示例:白色小熊围巾
必填
product_id
int
示例:9300
必填
amount
string
示例:22.90
必填
promotion_list
array
数据列表
必填
promotion_amount
int
示例:0
必填
product
object
商品规格,数据字典
必填
id
int
默认规格id,示例:9297
必填
goods_id
int
示例:1484
必填
barcode
object
示例:null
必填
sn
string
示例:P6079284369500
必填
price
string
非会员价,示例:22.90
必填
costprice
string
会员价,示例:21.90
必填
mktprice
string
示例:0.00
必填
marketable
int
示例:2
必填
stock
int
默认规格库存,示例:189
必填
spes_desc
string
默认规格名,示例:颜色:咖色小熊围巾
必填
is_defalut
int
示例:1
必填
image_id
string
示例:cc51ddaab07a7a7dfb25471eb27a62fc
必填
isdel
object
示例:null
必填
name
string
示例:冬季可爱超萌小熊帽子围巾一体两件套加厚毛绒保暖围脖
必填
buy_limit
int
示例:0
必填
bn
string
示例:G6079284369405
必填
image_path
string
默认规格图,示例:http://img.ywzyit.com/static/uploads/images/2020/12/14/16079283725fd70a3467c59.jpg
必填
total_stock
int
示例:189
必填
grade_price
array
数据列表
必填
grade_info
object
数据字典
必填
id
int
示例:3
必填
default_spes_desc
object
规格数据,数据字典
必填
颜色
object
数据字典
必填
咖色小熊围巾
object
数据字典
必填
name
string
示例:咖色小熊围巾
必填
is_default
boolean
示例:true
必填
product_id
int
示例:规格id
必填
米色小熊围巾
object
数据字典
必填
name
string
示例:米色小熊围巾
必填
product_id
int
示例:9298
必填
灰色小熊围巾
object
数据字典
必填
name
string
示例:灰色小熊围巾
必填
product_id
int
示例:9299
必填
白色小熊围巾
object
数据字典
必填
name
string
示例:白色小熊围巾
必填
product_id
int
示例:9300
必填
amount
string
示例:22.90
必填
promotion_list
array
数据列表
必填
promotion_amount
int
示例:0
必填
album
array
商品轮播图,数据列表
必填
total_stock
int
共,库存,示例:786
必填
is_buy_num
int
已抢数量,示例:14
必填
isfav
string
示例:false
必填
can_buy
string
is_end:活动已结束,not_start:活动未开始,示例:ok
必填
allproduct
array
数据列表
必填
id
int
示例:9297
必填
goods_id
int
示例:1484
必填
barcode
object
示例:null
必填
sn
string
示例:P6079284369500
必填
price
string
示例:22.90
必填
costprice
string
示例:21.90
必填
mktprice
string
示例:0.00
必填
marketable
int
示例:2
必填
stock
int
示例:189
必填
freeze_stock
int
示例:0
必填
spes_desc
string
示例:颜色:咖色小熊围巾
必填
is_defalut
int
示例:1
必填
image_id
string
示例:cc51ddaab07a7a7dfb25471eb27a62fc
必填
isdel
object
示例:null
必填