文档
测试

获取商品信息

POST
https://sdyp.xinghaoruiye.com/api.html

请求参数

参数名
类型
描述
必填
method
string
示例:works.info
必填
id
int
示例:10
必填

响应参数

参数名
类型
描述
必填
status
boolean
示例:true
必填
msg
string
示例:
必填
data
object
数据字典
必填
category
array
数据列表
必填
id
int
示例:1
必填
parent_id
int
示例:0
必填
name
string
示例:|----一级001
必填
type_id
int
示例:0
必填
sort
int
示例:100
必填
image_id
string
示例:
必填
status
int
示例:1
必填
utime
int
示例:1625122842
必填
params
array
数据列表
必填
name
string
示例:作品规格
必填
value
array
数据列表
必填
type
string
示例:text
必填
goods
object
数据字典
必填
status
boolean
示例:true
必填
data
object
数据字典
必填
id
int
示例:10
必填
bn
string
示例:G6257986815114
必填
name
string
示例:商品010
必填
brief
string
示例:
必填
price
string
示例:100.00
必填
costprice
string
示例:0.00
必填
mktprice
string
示例:0.00
必填
image_id
string
示例:0e077508c1300b51fde06dd563dee0c0
必填
goods_cat_id
int
示例:11
必填
goods_type_id
int
示例:2
必填
brand_id
int
示例:0
必填
is_nomal_virtual
int
示例:1
必填
marketable
int
示例:2
必填
stock
int
示例:1
必填
freeze_stock
int
示例:0
必填
weight
string
示例:0.00
必填
unit
string
示例:
必填
intro
string
示例:
必填
spes_desc
string
示例:
必填
params
string
示例:a:3:{s:12:"作品规格";s:10:"120cm*50cm";s:12:"作品材质";s:12:"羊皮卷111";s:12:"是否装裱";s:3:"否";}
必填
comments_count
int
示例:0
必填
view_count
int
示例:0
必填
buy_count
int
示例:0
必填
uptime
object
示例:null
必填
downtime
object
示例:null
必填
sort
int
示例:100
必填
is_recommend
int
示例:2
必填
is_hot
int
示例:2
必填
label_ids
object
示例:null
必填
new_spec
string
示例:
必填
ctime
object
示例:null
必填
utime
int
示例:1625799040
必填
isdel
object
示例:null
必填
user_id
int
示例:0
必填
products
array
数据列表
必填
id
int
示例:12
必填
goods_id
int
示例:10
必填
barcode
object
示例:null
必填
sn
string
示例:P6257990400502
必填
price
string
示例:100.00
必填
costprice
string
示例:0.00
必填
mktprice
string
示例:0.00
必填
marketable
int
示例:2
必填
stock
int
示例:1
必填
freeze_stock
int
示例:0
必填
spes_desc
object
示例:null
必填
is_defalut
int
示例:1
必填
image_id
string
示例:0e077508c1300b51fde06dd563dee0c0
必填
isdel
object
示例:null
必填
name
string
示例:商品010
必填
bn
string
示例:G6257986815114
必填
image_path
string
示例:https://sdyp.xinghaoruiye.com/static/uploads/images/2021/07/05/162547173360e2baf5652b2.jpg
必填
total_stock
int
示例:1
必填
grade_price
array
数据列表
必填
grade_info
array
数据列表
必填
amount
string
示例:100.00
必填
promotion_list
array
数据列表
必填
promotion_amount
int
示例:0
必填
images
array
数据列表
必填
goods_id
int
示例:10
必填
image_id
string
示例:0e077508c1300b51fde06dd563dee0c0
必填
image_path
string
示例:https://sdyp.xinghaoruiye.com/static/uploads/images/2021/07/05/162547173360e2baf5652b2.jpg
必填
msg
string
示例:查询成功
必填