|
|
## 订单前后台分离
|
|
|
|
|
|
|
|
|
### 取消订单MQ消息
|
|
|
TOPIC:order.cancel
|
|
|
```json
|
|
|
{"orderCode":100000,"status":900}
|
|
|
```
|
|
|
|
|
|
### 订单状态同步MQ消息
|
|
|
TOPIC:order.erpstatus
|
|
|
```json
|
|
|
{"orderCode":100000,"status":901}
|
|
|
```
|
|
|
|
|
|
|
|
|
### 前台创建换货单
|
|
|
TOPIC:order.createChangeOrder
|
|
|
```json
|
|
|
{
|
|
|
"id": 1,
|
|
|
"city": "南京市",
|
|
|
"area_code": "320115",
|
|
|
"address": "江宁经济技术开发区苏源大道87号(有货物流中心订单组)",
|
|
|
"consignee_name": "测试",
|
|
|
"county": "江宁区",
|
|
|
"delivery_tpye": 10,
|
|
|
"email": "",
|
|
|
"exchange_mode": 10,
|
|
|
"mobile": "13776693005",
|
|
|
"order_code": 16062099,
|
|
|
"province": "江苏省",
|
|
|
"receipt_time": "2",
|
|
|
"remark": "用户换货",
|
|
|
"uid": 8041518,
|
|
|
"zip_code": "211100",
|
|
|
"goods": [
|
|
|
{
|
|
|
"exchange_reason": "3",
|
|
|
"goods_type": "1",
|
|
|
"last_price": "88.00",
|
|
|
"new_goods_id": 354687,
|
|
|
"new_product_skc": 279434,
|
|
|
"new_product_sku": 892152,
|
|
|
"product_skc": 279434,
|
|
|
"product_skn": 51152761,
|
|
|
"product_sku": 892152,
|
|
|
"remark": ""
|
|
|
}
|
|
|
]
|
|
|
}
|
|
|
```
|
|
|
|
|
|
### ERP创建换货单
|
|
|
TOPIC:erp.createChangeOrder
|
|
|
```json
|
|
|
{"id":1,"init_order_code":"111","source_order_code":1111,"new_order_code":1111,"exchange_id":111,"returned_id":111,"exchange_status":10,"returned_status":10}
|
|
|
```
|
|
|
|
|
|
### 前台更新换货快递信息
|
|
|
TOPIC:order.updateChangeOrderExpressInfo
|
|
|
```json
|
|
|
{"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"}
|
|
|
```
|
|
|
|
|
|
### ERP更新换货单状态
|
|
|
TOPIC:erp.updateChangeOrderStatus
|
|
|
```json
|
|
|
{"id":1,"status":40}
|
|
|
```
|
|
|
|
|
|
|
|
|
### 前台创建退货单
|
|
|
TOPIC:order.createRefundOrder
|
|
|
|
|
|
|
|
|
### ERP创建退货单
|
|
|
TOPIC:erp.createRefundOrder
|
|
|
```json
|
|
|
{"id":1,"returned_id":1,"returned_status":10,"real_returned_amount":100,"is_return_coupon":"N","return_yoho_coin":11111}
|
|
|
```
|
|
|
|
|
|
### 前台更新退货快递信息
|
|
|
TOPIC:order.updateRefundOrderExpressInfo
|
|
|
```json
|
|
|
{"id":1,"apply_id":40,"express_number":"603596395359","express_name":"顺丰","express_id":"23"}
|
|
|
```
|
|
|
|
|
|
### ERP更新退货单状态
|
|
|
TOPIC:erp.updateRefundOrderStatus
|
|
|
```json
|
|
|
{"id":1,"status":40}
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## 调试接口
|
|
|
|
|
|
### 更新订单状态
|
|
|
hosts 192.168.50.69 api.erp.yohobuy.com
|
|
|
|
|
|
#### 输入
|
|
|
method=orders.orders.updateStatus
|
|
|
order_code=*****
|
|
|
|
|
|
#### 输出
|
|
|
```json
|
|
|
{
|
|
|
"code":200,
|
|
|
"message":"ok",
|
|
|
"data":null
|
|
|
}
|
|
|
```
|
|
|
code==200表示成功,其它都为失败 |
|
|
\ No newline at end of file |
...
|
...
|
|