文档
测试

创建订单

POST
{{url}}/api/order/create

请求头

参数名
类型
描述
必填

请求参数

参数名
类型
描述
必填
token
string
token
必填
id
string
商品id
必填
cart
int
购物车id 多个用逗号
可选

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:
必填
time
string
示例:1667377644
必填
data
object
数据字典
必填
product
array
数据列表
必填
market_price
int
市场价钱
必填
sales_price
int
销售价钱
必填
stock
int
库存
必填
sales
int
销量
必填
image
string
商品图片
必填
title
string
商品名称
必填
spec
string
示例:
可选
number
int
购买数量
必填
id
string
商品id
必填