Skip to content

Instantly share code, notes, and snippets.

@failable
Created October 12, 2025 10:12
Show Gist options
  • Select an option

  • Save failable/747bd0a5d17450a409297119fe6fd926 to your computer and use it in GitHub Desktop.

Select an option

Save failable/747bd0a5d17450a409297119fe6fd926 to your computer and use it in GitHub Desktop.
{
"request_id": "67624cfc-9d55-45af-9c8b-1e78cd14445c",
"chat_id": "111",
"shop_name": "润星壹药医药专营店",
"shop_id": "322188712",
"company_id": 2840397487074709761,
"platform_id": 5,
"messages": [
{
"timestamp": 1750160042000,
"id": "be916f5d-85e1-46fe-9022-4ad3dcb6146f",
"role": "user", // 用户:"user",机器人:"assistant"
"content": {
"type": "item", // (string) 必须为"item"
"item": {
"id": "12345678"
}
}
},
{
"timestamp": 1750160042000,
"id": "be916f5d-85e1-46fe-9022-4ad3dcb6146f",
"role": "user", // 用户:"user",机器人:"assistant"
"content": {
"type": "order", // (string) 必须为"order"
"order": {
"id": "123456789" // (string) 订单ID
}
}
},
{
"id": "1",
"role": "user",
"timestamp": 1750684366594,
"content": {
"type": "text",
"text": "什么快递"
}
}
],
"items": [
{
"id": "12345678", // (string) 商品ID
"title": "洋气时尚夏潮流休闲运动套装甜妹宽松显瘦韩版棉质短袖短裤两件套", // (string) 商品标题
"url": "https://h5.m.taobao.com/awp/core/detail.htm?id=819702641508", // (string) 商品链接
"image_url": "https://h5.m.taobao.com/awp/core/detail.htm?id=819702641508", // (string) 商品主图链接
"props": [
{
"key": "通用名", // (string) 属性名称,如:通用名
"value": "阿莫西林胶囊", // (string) 属性值,如:阿莫西林胶囊
}
],
"skus": [
{
"id": "12345678", // (string) SKU ID
"sku": null, // (string|null) 商品SKU
"price": 139.0 // (number) 商品价格
"stock": 100 // (number|null) 商品库存数量
"selected": false // (boolean) 是否当前选中的SKU
}
]
}
],
"orders": [
{
"company_id": 2840397487074709761,
"platform": 5,
"shop_name": "润星壹药医药专营店",
"user_name": "测试用户",
"order_no": "202401010001",
"medicine_id": 12345,
"medicine_name": "测试药品",
"spec": "10mg*30片",
"quantity": 1,
"price": 58.0,
"order_time": 1704067200000,
"order_status": 2,
"payment_status": 1,
"payment_time": 1704067800000,
"shipment_time": 1704154200000,
"logistics_company": "顺丰速运",
"logistics_no": "SF1234567890",
"order_address": "北京市朝阳区测试地址"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment