手动处理产品列表
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\HostModel::failedActionHostList |
| 所属业务 | 产品管理 |
| 来源模块/系统 | 产品模型 |
功能说明
手动处理产品列表
调用示例
$param = ['page' => 1, 'limit' => 1, 'action' => 'string', 'keywords' => '示例关键字', 'orderby' => 'failed_action_trigger_time'];
$result = (new \app\common\model\HostModel())->failedActionHostList($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param.page | int | 否 | — | — | 页数 |
param.limit | int | 否 | — | — | 每页条数 |
param.action | string | 否 | — | — | 搜索:失败动作(create=开通失败,suspend=暂停失败,terminate=删除失败) |
param.keywords | string | 否 | — | — | 关键字:产品ID,商品名称,产品标识,IP地址 |
param.orderby | string | 否 | failed_action_trigger_time | — | 排序(id,due_time,failed_action_trigger_time) |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list[].id | int | 产品ID |
list[].name | string | 产品标识 |
list[].product_id | int | 商品ID |
list[].product_name | string | 商品名称 |
list[].client_id | int | 用户ID |
list[].status | string | 产品状态(Unpaid=未付款,Pending=开通中,Active=已开通,Suspended=已暂停,Deleted=已删除) |
list[].failed_action | string | 失败动作(create=开通失败,suspend=暂停失败,terminate=删除失败) |
list[].failed_action_reason | string | 失败原因 |
list[].renew_amount | string | 续费金额 |
list[].billing_cycle | string | 计费方式(免费free,一次onetime,周期先付recurring_prepayment,周期后付recurring_postpaid) |
list[].billing_cycle_name | string | 模块计费周期名称 |
list[].due_time | int | 到期时间 |
list[].client_name | string | 用户名 |
list[].email | string | 邮箱 |
list[].phone_code | int | 区号 |
list[].phone | string | 手机号 |
list[].failed_action_trigger_time | int | 触发时间 |
list[].retry | int | 是否可重试0=否1=是 |
count | int | 总条数 |
dusing_count | int | 使用中产品数量 |
expiring_count | int | 即将到期产品数量 |
overdue_count | int | 已逾期产品数量 |
deleted_count | int | 已删除产品数量 |
all_count | int | 全部产品数量 |
failed_action_count | int | 手动处理产品数量 |
正常返回
{
"list": [
{
"id": 1,
"name": "示例名称",
"product_id": 1,
"product_name": "示例名称",
"client_id": 1,
"status": "Active",
"failed_action": "string",
"failed_action_reason": "示例说明",
"renew_amount": "string",
"billing_cycle": "monthly",
"billing_cycle_name": "monthly",
"due_time": 1752984000,
"client_name": "示例名称",
"email": "user@example.com",
"phone_code": 86,
"phone": "13800138000",
"failed_action_trigger_time": 1752984000,
"retry": 1
}
],
"count": 1,
"dusing_count": 1,
"expiring_count": 1,
"overdue_count": 1,
"deleted_count": 1,
"all_count": 1,
"failed_action_count": 1
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |