智简魔方文档

订单内页产品退款列表

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\model\OrderItemModel::orderHostRefundList
所属业务订单管理
来源模块/系统订单子项模型

功能说明

订单内页产品退款列表

调用示例

$param = ['order_id' => 1, 'keywords' => '示例关键字'];
$result = (new \app\common\model\OrderItemModel())->orderHostRefundList($param);

参数

参数类型必填默认值校验规则说明
param.order_idintrequire订单ID
param.keywordsstring关键字:商品名称,产品标识,备注

返回值

返回项类型说明
list[].idint订单子项ID
list[].product_idint商品ID
list[].host_idint产品ID
list[].product_namestring商品名称
list[].host_namestring产品标识
list[].ip_numintIP数量
list[].dedicate_ipstring主IP
list[].assign_ipstring附加IP
list[].descriptionstring描述
list[].host_statusstring产品状态Unpaid未付款Pending开通中Active使用中Suspended暂停Deleted删除Failed开通失败
list[].amountstring金额
list[].refund_creditstring退款余额金额
list[].refund_gatewaystring退款渠道金额
list[].refund_totalstring退款总金额
list[].refund_statusstring退款状态(not_refund=未退款,part_refund=部分退款,all_refund=全部退款,addon_refund=插件退款)
list[].profitstring利润
list[].agentint代理订单1是0否

正常返回

{
  "list": [
    {
      "id": 1,
      "product_id": 1,
      "host_id": 1,
      "product_name": "示例名称",
      "host_name": "示例名称",
      "ip_num": 1,
      "dedicate_ip": "192.0.2.1",
      "assign_ip": "example-token",
      "description": "192.0.2.1",
      "host_status": "Active",
      "amount": "string",
      "refund_credit": "string",
      "refund_gateway": "credit",
      "refund_total": "string",
      "refund_status": "Active",
      "profit": "string",
      "agent": 1
    }
  ]
}

异常情况

异常类型说明
Throwable调用失败时由具体实现抛出异常,异常信息以运行时结果为准。