简要描述:
- 会员加油订单分页
请求域名:
- http://xx.com
请求URL:
GET/plugin.store-oil-station.frontend.license-plate.get-oil-order
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
uid | 是 | int | 会员ID |
page | 是 | int | 当前页数,默认:1 |
返回示例:
正确时返回:
{
"result": 1,
"msg": "order list",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"uniacid": 6,
"store_id": 8,
"order_id": 895,
"oil_id": 1,
"litre": "100.00",
"litre_price": "8.90",
"plate_num": "12345678",
"created_at": null,
"oil_name": "93",
"goods_title": "门店8测试111",
"has_one_order": {
"id": 895,
"order_sn": "SN2112171619707308",
"uid": 2455,
"status": 3,
"pay_type_id": 5,
"pay_time": "2021-12-17 16:19:29",
"price": "180.00",
"discount_price": "0.00",
"deduction_price": "150.00",
"goods_price": "300.00",
"order_goods_price": "300.00",
"status_name": "交易完成",
"pay_type_name": "后台"
},
"oils_quality": {
"id": 1,
"uniacid": 6,
"sort_value": 1,
"oil_name": "93",
"oil_price": "8.76",
"created_at": "2024-05-06 16:22:40"
}
}
],
"last_page": 1,
"per_page": 10,
"total": 1
}
}
错误时返回:
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
order_id | int | 订单ID |
has_one_order.status_name | string | 订单状态 |
has_one_order.pay_time | string | 支付时间 |
plate_num | string | 车牌号 |
oil_name | string | 油号 |
goods_title | string | 油品名称 |
litre_price | string | 单价 |
litre | string | 数量 |
has_one_order.order_goods_price | string | 合计金额 |
has_one_order.discount_price | string | 优惠金额 |
has_one_order.deduction_price | string | 抵扣金额 |
has_one_order.price | string | 支付金额 |
备注:
- 更多返回错误代码请看首页的错误代码描述