前台订单交易记录
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\OrderModel::orderTransactionRecord |
| 所属业务 | 订单管理 |
| 来源模块/系统 | 订单模型 |
功能说明
前台订单交易记录
调用示例
$param = ['id' => 1];
$result = (new \app\common\model\OrderModel())->orderTransactionRecord($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param.id | int | 是 | — | require | 订单ID |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list[].create_time | int | 交易时间 |
list[].host_id | int | 产品ID |
list[].host_name | string | 产品标识 |
list[].product_id | int | 商品ID |
list[].product_name | string | 商品名称 |
list[].description | string | 描述 |
list[].amount | string | 金额 |
正常返回
{
"list": [
{
"create_time": 1752984000,
"host_id": 1,
"host_name": "示例名称",
"product_id": 1,
"product_name": "示例名称",
"description": "192.0.2.1",
"amount": "string"
}
]
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |