test(wxapi): 适配新的模型测试

This commit is contained in:
Fu Diwei
2021-05-28 19:27:38 +08:00
parent dc78ea6577
commit 27cd4178e7
988 changed files with 11052 additions and 206 deletions

View File

@@ -0,0 +1,6 @@
{
"type": "bind",
"biz_id": "123456",
"delivery_id": "YUNDA",
"password": "123456789123456789"
}

View File

@@ -0,0 +1,17 @@
{
"count": 1,
"list": [
{
"biz_id": "123456789",
"delivery_id": "YUNDA",
"create_time": 1555482786,
"update_time": 1556594799,
"status_code": 0,
"alias": "",
"remark_wrong_msg": "",
"remark_content": "",
"quota_num": 55,
"quota_update_time": 1556594799
}
]
}

View File

@@ -0,0 +1,33 @@
{
"count": 7,
"data": [
{
"delivery_id": "BEST",
"delivery_name": "百世快递"
},
{
"delivery_id": "EMS",
"delivery_name": "中国邮政速递物流"
},
{
"delivery_id": "PJ",
"delivery_name": "品骏物流"
},
{
"delivery_id": "SF",
"delivery_name": "顺丰速运"
},
{
"delivery_id": "YTO",
"delivery_name": "圆通速递"
},
{
"delivery_id": "YUNDA",
"delivery_name": "韵达快递"
},
{
"delivery_id": "ZTO",
"delivery_name": "中通快递"
}
]
}

View File

@@ -0,0 +1,63 @@
{
"add_source": 0,
"order_id": "01234567890123456789",
"openid": "oABC123456",
"delivery_id": "SF",
"biz_id": "xyz",
"custom_remark": "易碎物品",
"sender": {
"name": "张三",
"tel": "020-88888888",
"mobile": "18666666666",
"company": "公司名",
"post_code": "123456",
"country": "中国",
"province": "广东省",
"city": "广州市",
"area": "海珠区",
"address": "XX路XX号XX大厦XX栋XX"
},
"receiver": {
"name": "王小蒙",
"tel": "020-77777777",
"mobile": "18610000000",
"company": "公司名",
"post_code": "654321",
"country": "中国",
"province": "广东省",
"city": "广州市",
"area": "天河区",
"address": "XX路XX号XX大厦XX栋XX"
},
"shop": {
"wxa_path": "/index/index?from=waybill&id=01234567890123456789",
"img_url": "https://mmbiz.qpic.cn/mmbiz_png/OiaFLUqewuIDNQnTiaCInIG8ibdosYHhQHPbXJUrqYSNIcBL60vo4LIjlcoNG1QPkeH5GWWEB41Ny895CokeAah8A/640",
"goods_name": "微信气泡狗抱枕&微信气泡狗钥匙扣",
"goods_count": 2
},
"cargo": {
"count": 2,
"weight": 5.5,
"space_x": 30.5,
"space_y": 20,
"space_z": 20,
"detail_list": [
{
"name": "微信气泡狗抱枕",
"count": 1
},
{
"name": "微信气泡狗钥匙扣",
"count": 1
}
]
},
"insured": {
"use_insured": 1,
"insured_value": 10000
},
"service": {
"service_type": 0,
"service_name": "标准快递"
}
}

View File

@@ -0,0 +1,16 @@
{
"delivery_resultcode": 0,
"delivery_resultmsg": "ok",
"order_id": "01234567890123456789",
"waybill_id": "123456789",
"waybill_data": [
{
"key": "SF_bagAddr",
"value": "广州"
},
{
"key": "SF_mark",
"value": "101- 07-03 509"
}
]
}

View File

@@ -0,0 +1,14 @@
{
"order_list": [
{
"order_id": "01234567890123456789",
"delivery_id": "SF",
"waybill_id": "123456789"
},
{
"order_id": "01234567890123456789",
"delivery_id": "SF",
"waybill_id": "123456789"
}
]
}

View File

@@ -0,0 +1,42 @@
{
"order_list": [
{
"errcode": 0,
"errmsg": "ok",
"order_id": "01234567890123456789",
"delivery_id": "SF",
"waybill_id": "123456789",
"print_html": "jh7DjipP4ul4CQYUh69cniskrQZuOPwa1inAbXIqKbU0t71c0s65Au54cdWBZW0QJY4LYeofdM",
"waybill_data": [
{
"key": "SF_bagAddr",
"value": "广州"
},
{
"key": "SF_mark",
"value": "101- 07-03 509"
}
],
"order_status": 0
},
{
"errcode": 0,
"errmsg": "ok",
"order_id": "01234567890123456789_2",
"delivery_id": "SF",
"waybill_id": "123456789_2",
"print_html": "jh7DjipP4ul4CQYUh69cniskrQZuOPwa1inAbXIqKbU0t71c0s65Au54cdWBZW0QJY4LYeofdM",
"waybill_data": [
{
"key": "SF_bagAddr",
"value": "广州"
},
{
"key": "SF_mark",
"value": "101- 07-03 509"
}
],
"order_status": 0
}
]
}

View File

@@ -0,0 +1,6 @@
{
"order_id": "01234567890123456789",
"openid": "oABC123456",
"delivery_id": "SF",
"waybill_id": "123456789"
}

View File

@@ -0,0 +1,6 @@
{
"errcode": 0,
"errmsg": "ok",
"delivery_resultcode": 0,
"delivery_resultmsg": ""
}

View File

@@ -0,0 +1,6 @@
{
"order_id": "01234567890123456789",
"openid": "oABC123456",
"delivery_id": "SF",
"waybill_id": "123456789"
}

View File

@@ -0,0 +1,17 @@
{
"print_html": "jh7DjipP4ul4CQYUh69cniskrQZuOPwa1inAbXIqKbU0t71c0s65Au54cdWBZW0QJY4LYeofdM",
"waybill_data": [
{
"key": "SF_bagAddr",
"value": "广州"
},
{
"key": "SF_mark",
"value": "101- 07-03 509"
}
],
"delivery_id": "SF",
"waybill_id": "123456",
"order_id": "123456",
"order_status": 0
}

View File

@@ -0,0 +1,6 @@
{
"order_id": "01234567890123456789",
"openid": "oABC123456",
"delivery_id": "SF",
"waybill_id": "123456789"
}

View File

@@ -0,0 +1,23 @@
{
"openid": "OPENID",
"delivery_id": "SF",
"waybill_id": "12345678901234567890",
"path_item_num": 3,
"path_item_list": [
{
"action_time": 1533052800,
"action_type": 100001,
"action_msg": "快递员已成功取件"
},
{
"action_time": 1533062800,
"action_type": 200001,
"action_msg": "快件已到达xxx集散中心准备发往xxx"
},
{
"action_time": 1533072800,
"action_type": 300001,
"action_msg": "快递员已出发联系电话xxxxxx"
}
]
}

View File

@@ -0,0 +1,11 @@
{
"count": 2,
"openid": [
"oABC",
"oXYZ"
],
"tagid_list": [
"123",
"456"
]
}

View File

@@ -0,0 +1,5 @@
{
"openid": "oJ4v0wRAfiXcnIbM3SgGEUkTw3Qw",
"update_type": "bind",
"tagid_list": "123,456"
}

View File

@@ -0,0 +1,4 @@
{
"delivery_id": "YTO",
"biz_id": "xyz"
}

View File

@@ -0,0 +1,9 @@
{
"biz_id": "test_biz_id",
"order_id": "xxxxxxxxxxxx",
"delivery_id": "TEST",
"waybill_id": "xxxxxxxxxx",
"action_time": 123456789,
"action_type": 100001,
"action_msg": "揽件阶段"
}

View File

@@ -0,0 +1,4 @@
{
"token": "TOKEN",
"waybill_id": "12345678901234567890"
}

View File

@@ -0,0 +1,15 @@
{
"waybill_id": "12345678901234567890",
"sender": {
"address": "广东省广州市海珠区XX路XX号XX大厦XX栋XX",
"name": "张三",
"tel": "020-88888888",
"mobile": "18666666666"
},
"receiver": {
"address": "广东省广州市天河区XX路XX号XX大厦XX栋XX",
"name": "王小蒙",
"tel": "029-77777777",
"mobile": "18610000000"
}
}

View File

@@ -0,0 +1,7 @@
{
"token": "TOKEN",
"waybill_id": "12345678901234567890",
"action_time": 1533052800,
"action_type": 300002,
"action_msg": "丽影邓丽君【18666666666】正在派件"
}

View File

@@ -0,0 +1,6 @@
{
"shop_app_id": "wxABCD",
"biz_id": "xyz",
"result_code": 0,
"result_msg": "审核通过"
}

View File

@@ -0,0 +1,67 @@
{
"waybill_id": "1234567890123",
"waybill_data": "##ZTO_mark##11-22-33##ZTO_bagAddr##广州##",
"waybill_template": "PGh0bWw+dGVzdDwvaHRtbD4=",
"custom": {
"order_id": "012345678901234567890123456789",
"openid": "oABC123456",
"delivery_id": "ZTO",
"biz_id": "xyz",
"custom_remark": "易碎物品",
"sender": {
"name": "张三",
"tel": "18666666666",
"mobile": "020-88888888",
"company": "公司名",
"post_code": "123456",
"country": "中国",
"province": "广东省",
"city": "广州市",
"area": "海珠区",
"address": "XX路XX号XX大厦XX栋XX"
},
"receiver": {
"name": "王小蒙",
"tel": "18610000000",
"mobile": "020-77777777",
"company": "公司名",
"post_code": "654321",
"country": "中国",
"province": "广东省",
"city": "广州市",
"area": "天河区",
"address": "XX路XX号XX大厦XX栋XX"
},
"shop": {
"wxa_path": "/index/index?from=waybill",
"img_url": "https://mmbiz.qpic.cn/mmbiz_png/KfrZwACMrmwbPGicysN6kibW0ibXwzmA3mtTwgSsdw4Uicabduu2pfbfwdKicQ8n0v91kRAUX6SDESQypl5tlRwHUPA/640",
"goods_name": "一千零一夜钻石包&爱马仕柏金钻石包",
"goods_count": 2
},
"cargo": {
"count": 2,
"weight": 5.5,
"space_x": 30.5,
"space_y": 20,
"space_z": 20,
"detail_list": [
{
"name": "一千零一夜钻石包",
"count": 1
},
{
"name": "爱马仕柏金钻石包",
"count": 1
}
]
},
"insured": {
"use_insured": 1,
"insured_value": 10000
},
"service": {
"service_type": 0,
"service_name": "标准快递"
}
}
}

View File

@@ -0,0 +1,4 @@
{
"waybill_id": "1234567890123",
"rendered_waybill_template": "PGh0bWw+dGVzdDwvaHRtbD4="
}

View File

@@ -0,0 +1,14 @@
{
"resultcode": 0,
"resultmsg": "ok",
"list": [
{
"delivery_id": "SFTC",
"delivery_name": "顺发同城"
},
{
"delivery_id": "MTPS",
"delivery_name": "美团配送"
}
]
}

View File

@@ -0,0 +1,74 @@
{
"cargo": {
"cargo_first_class": "美食夜宵",
"cargo_second_class": "零食小吃",
"goods_detail": {
"goods": [
{
"good_count": 1,
"good_name": "水果",
"good_price": 10,
"good_unit": "元"
},
{
"good_count": 2,
"good_name": "蔬菜",
"good_price": 20,
"good_unit": "元"
}
]
},
"goods_height": 1,
"goods_length": 3,
"goods_value": 5,
"goods_weight": 1,
"goods_width": 2
},
"delivery_id": "SFTC",
"delivery_sign": "01234567890123456789",
"openid": "oABC123456",
"order_info": {
"delivery_service_code": "",
"expected_delivery_time": 0,
"is_direct_delivery": 0,
"is_finish_code_needed": 1,
"is_insured": 0,
"is_pickup_code_needed": 1,
"note": "test_note",
"order_time": 1555220757,
"order_type": 0,
"poi_seq": "1111",
"tips": 0
},
"receiver": {
"address": "xxx地铁站",
"address_detail": "2号楼202",
"city": "北京市",
"coordinate_type": 0,
"lat": 40.1529600000,
"lng": 116.5060300000,
"name": "老王",
"phone": "18512345678"
},
"sender": {
"address": "xx大厦",
"address_detail": "1号楼101",
"city": "北京市",
"coordinate_type": 0,
"lat": 40.4486120000,
"lng": 116.3830750000,
"name": "刘一",
"phone": "13712345678"
},
"shop": {
"goods_count": 2,
"goods_name": "宝贝",
"img_url": "https://mmbiz.qpic.cn/mmbiz_png/xxxxxxxxx/0?wx_fmt=png",
"wxa_path": "/page/index/index"
},
"shop_no": "12345678",
"sub_biz_id": "sub_biz_id_1",
"shop_order_id": "SFTC_001",
"shopid": "122222222",
"delivery_token": "xxxxxxxx"
}

View File

@@ -0,0 +1,15 @@
{
"resultcode": 0,
"resultmsg": "ok",
"fee": 10,
"deliverfee": 10,
"couponfee": 0,
"tips": 0,
"insurancefee": 0,
"distance": 1000,
"waybill_id": "123456789",
"order_status": 101,
"finish_code": 1024,
"pickup_code": 2048,
"dispatch_duration": 300
}

View File

@@ -0,0 +1,9 @@
{
"shopid": "123456",
"shop_order_id": "123456",
"waybill_id": "123456",
"tips": 5,
"remark": "gogogo",
"delivery_sign": "123456",
"shop_no": "shop_no_111"
}

View File

@@ -0,0 +1,10 @@
{
"shopid": "123456",
"shop_order_id": "123456",
"waybill_id": "123456",
"delivery_id": "123456",
"cancel_reason_id": 1,
"cancel_reason": "",
"delivery_sign": "123456",
"shop_no": "shop_no_111"
}

View File

@@ -0,0 +1,6 @@
{
"resultcode": 0,
"resultmsg": "ok",
"deduct_fee": 5,
"desc": "blabla"
}

View File

@@ -0,0 +1,8 @@
{
"shopid": "123456",
"shop_order_id": "123456",
"shop_no": "shop_no_111",
"waybill_id": "123456",
"remark": "remark",
"delivery_sign": "123456"
}

View File

@@ -0,0 +1,73 @@
{
"cargo": {
"cargo_first_class": "美食夜宵",
"cargo_second_class": "零食小吃",
"goods_detail": {
"goods": [
{
"good_count": 1,
"good_name": "水果",
"good_price": 10,
"good_unit": "元"
},
{
"good_count": 2,
"good_name": "蔬菜",
"good_price": 20,
"good_unit": "元"
}
]
},
"goods_height": 1,
"goods_length": 3,
"goods_value": 5,
"goods_weight": 1,
"goods_width": 2
},
"delivery_id": "SFTC",
"delivery_sign": "01234567890123456789",
"openid": "oABC123456",
"order_info": {
"delivery_service_code": "",
"expected_delivery_time": 0,
"is_direct_delivery": 0,
"is_finish_code_needed": 1,
"is_insured": 0,
"is_pickup_code_needed": 1,
"note": "test_note",
"order_time": 1555220757,
"order_type": 0,
"poi_seq": "1111",
"tips": 0
},
"receiver": {
"address": "xxx地铁站",
"address_detail": "2号楼202",
"city": "北京市",
"coordinate_type": 0,
"lat": 40.1529600000,
"lng": 116.5060300000,
"name": "老王",
"phone": "18512345678"
},
"sender": {
"address": "xx大厦",
"address_detail": "1号楼101",
"city": "北京市",
"coordinate_type": 0,
"lat": 40.4486120000,
"lng": 116.3830750000,
"name": "刘一",
"phone": "13712345678"
},
"shop": {
"goods_count": 2,
"goods_name": "宝贝",
"img_url": "https://mmbiz.qpic.cn/mmbiz_png/xxxxxxxxx/0?wx_fmt=png",
"wxa_path": "/page/index/index"
},
"shop_no": "12345678",
"sub_biz_id": "sub_biz_id_1",
"shop_order_id": "SFTC_001",
"shopid": "122222222"
}

View File

@@ -0,0 +1,12 @@
{
"resultcode": 0,
"resultmsg": "ok",
"fee": 10,
"deliverfee": 10,
"couponfee": 0,
"tips": 0,
"insurancefee": 0,
"distance": 1000,
"dispatch_duration": 300,
"delivery_token": "1111111"
}

View File

@@ -0,0 +1,10 @@
{
"shopid": "123456",
"shop_order_id": "123456",
"waybill_id": "123456",
"delivery_id": "123456",
"cancel_reason_id": 1,
"cancel_reason": "",
"delivery_sign": "123456",
"shop_no": "shop_no_111"
}

View File

@@ -0,0 +1,6 @@
{
"resultcode": 0,
"resultmsg": "ok",
"deduct_fee": 5,
"desc": "blabla"
}

View File

@@ -0,0 +1,74 @@
{
"cargo": {
"cargo_first_class": "美食夜宵",
"cargo_second_class": "零食小吃",
"goods_detail": {
"goods": [
{
"good_count": 1,
"good_name": "水果",
"good_price": 10,
"good_unit": "元"
},
{
"good_count": 2,
"good_name": "蔬菜",
"good_price": 20,
"good_unit": "元"
}
]
},
"goods_height": 1,
"goods_length": 3,
"goods_value": 5,
"goods_weight": 1,
"goods_width": 2
},
"delivery_id": "SFTC",
"delivery_sign": "01234567890123456789",
"openid": "oABC123456",
"order_info": {
"delivery_service_code": "",
"expected_delivery_time": 0,
"is_direct_delivery": 0,
"is_finish_code_needed": 1,
"is_insured": 0,
"is_pickup_code_needed": 1,
"note": "test_note",
"order_time": 1555220757,
"order_type": 0,
"poi_seq": "1111",
"tips": 0
},
"receiver": {
"address": "xxx地铁站",
"address_detail": "2号楼202",
"city": "北京市",
"coordinate_type": 0,
"lat": 40.1529600000,
"lng": 116.5060300000,
"name": "老王",
"phone": "18512345678"
},
"sender": {
"address": "xx大厦",
"address_detail": "1号楼101",
"city": "北京市",
"coordinate_type": 0,
"lat": 40.4486120000,
"lng": 116.3830750000,
"name": "刘一",
"phone": "13712345678"
},
"shop": {
"goods_count": 2,
"goods_name": "宝贝",
"img_url": "https://mmbiz.qpic.cn/mmbiz_png/xxxxxxxxx/0?wx_fmt=png",
"wxa_path": "/page/index/index"
},
"shop_no": "12345678",
"sub_biz_id": "sub_biz_id_1",
"shop_order_id": "SFTC_001",
"shopid": "122222222",
"delivery_token": "xxxxxxxx"
}

View File

@@ -0,0 +1,15 @@
{
"resultcode": 0,
"resultmsg": "ok",
"fee": 10,
"deliverfee": 10,
"couponfee": 0,
"tips": 0,
"insurancefee": 0,
"distance": 1000,
"waybill_id": "123456789",
"order_status": 101,
"finish_code": 1024,
"pickup_code": 2048,
"dispatch_duration": 300
}

View File

@@ -0,0 +1,8 @@
{
"shopid": "xxxxxxx",
"shop_order_id": "xxxxxxxxxxx",
"action_time": 1584145981,
"order_status": 101,
"action_msg": "",
"delivery_sign": "xxxxxxx"
}

View File

@@ -0,0 +1,16 @@
{
"resultcode": 0,
"resultmsg": "ok",
"shop_list": [
{
"delivery_id": "SFTC",
"shopid": "123456",
"audit_result": 0
},
{
"delivery_id": "MTPS",
"shopid": "123456",
"audit_result": 0
}
]
}

View File

@@ -0,0 +1,7 @@
{
"shopid": "test_shop_id",
"shop_order_id": "xxxxxxxxxxx",
"action_time": 12345678,
"order_status": 101,
"action_msg": ""
}