下单后自主修改订单信息
下单后用户自主修改订单信息
mongoDB
xnn_core_product_2 - customized_info 新增字段
- is_open_order_edit int 是否开启下单后自主编辑订单信息, 1: 开启, 0: 未开启
- order_edit_time_limit int 客户可修改订单的时间限制
station
[修改] /station/customized 店铺设置
Method:
get
request:
不变
response:
新增
is_open_order_edit M int 是否开启下单后自主编辑订单信息, 1: 开启, 0: 未开启
order_edit_time_limit O int 客户可修改订单的时间限制, 如果上面参数为true的话有这个参数, 否则为0
[修改] /station/customized/update 更新店铺设置
Method:
post
request:
is_open_order_edit M int 是否开启下单后自主编辑订单信息, 1: 开启, 0: 未开启
order_edit_time_limit O int 客户可修改订单的时间限制, 如果上面参数为true, 则必传这个参数且为大于0的整数
response:
不变
bshop
[修改] / 首页, 拉模板
Method:
get
request:
不变
response:
g_cms_config = {
新增
is_open_order_edit M int 是否开启下单后自主编辑订单信息, 1: 开启, 0: 未开启
order_edit_time_limit O int 客户可修改订单的时间限制, 如果上面参数为true的话有这个参数, 否则为0
}
[修改] /order/detail 获取订单详情
Method:
get
request:
不变
response:
data: {
...
data: {
...
is_edit: true, M bool 是否可编辑, true: 可编辑
details: [{
...
[新增字段]
sale_num_least: 5, M int 最小下单数
stocks: -99999, M int 库存, -99999为不限制库存
is_promotion_sku: false, M bool 是否限购商品
}]
}
}
[新增] /order/edit 修改订单
Method:
post
request:
order_id M string 订单ID
details: [{ M array
sku_id: "D123445", M string skuID
amount: "1", M string 下单数量
spu_id: "C1233", M string spuID
spu_remark: "remark", M string 商品备注
}, ...]
response:
data {
code: 0, M int 状态码
msg: "", M string 状态信息
data: {
order_id: "PL5005430" M string 订单ID
},
}