退款记录
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\RefundRecordModel::refundRecordList |
| 所属业务 | 订单管理 |
| 来源模块/系统 | 退款记录模型 |
功能说明
退款记录
调用示例
$param = ['id' => 1, 'page' => 1, 'limit' => 1, 'host_status' => 'Active', 'refund_status' => 'Active', 'keywords' => '示例关键字'];
$result = (new \app\common\model\RefundRecordModel())->refundRecordList($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param.id | int | 是 | — | require | 订单ID |
param.page | int | 否 | — | — | 页数 |
param.limit | int | 否 | — | — | 每页条数 |
param.host_status | string | 否 | — | — | 产品状态Unpaid未付款Pending开通中Active已开通Suspended已暂停Deleted已删除Failed开通失败Cancelled已取消 |
param.refund_status | string | 否 | — | — | 退款状态(Pending=待审核,Reject=已拒绝,Refunding退款中,Refunded已退款) |
param.keywords | string | 否 | — | — | 关键字:商品名称,产品标识,产品IP |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list[].id | int | 退款记录ID |
list[].create_time | int | 申请时间 |
list[].refund_time | int | 退款时间 |
list[].amount | string | 金额 |
list[].product_name | string | 商品名称 |
list[].host_name | string | 产品标识 |
list[].ip_num | int | IP数量 |
list[].dedicate_ip | string | 主IP |
list[].assign_ip | string | 附加IP |
list[].type | string | 类型(credit_first=余额优先,gateway_first=渠道优先,credit=余额,transaction/original=支付接口) |
list[].gateway | string | 退款支付方式标识 |
list[].gateway_name | string | 退款支付方式 |
list[].refund_type | string | 退款类型(order=订单退款,addon=插件退款) |
list[].admin_id | int | 操作人ID |
list[].admin_name | string | 操作人名称 |
list[].host_status | string | 产品状态Unpaid未付款Pending开通中Active已开通Suspended已暂停Deleted已删除Failed开通失败Cancelled已取消 |
list[].notes | string | 备注 |
list[].refund_status | string | 退款状态(Pending=待审核,Reject=已拒绝,Refunding退款中,Refunded已退款,Suspending待停用,Suspend停用中,Suspended已停用,Cancelled已取消) |
list[].reason | string | 拒绝原因 |
count | int | 总条数 |
正常返回
{
"list": [
{
"id": 1,
"create_time": 1752984000,
"refund_time": 1752984000,
"amount": "string",
"product_name": "示例名称",
"host_name": "示例名称",
"ip_num": 1,
"dedicate_ip": "192.0.2.1",
"assign_ip": "example-token",
"type": "string",
"gateway": "credit",
"gateway_name": "credit",
"refund_type": "string",
"admin_id": 1,
"admin_name": "示例名称",
"host_status": "Active",
"notes": "示例说明",
"refund_status": "Active",
"reason": "示例说明"
}
],
"count": 1
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |