产品暂停
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\HostModel::suspendAccount |
| 所属业务 | 用户管理 |
| 来源模块/系统 | 产品模型 |
功能说明
产品暂停
调用示例
$param = ['id' => 1, 'suspend_type' => 'overdue', 'suspend_reason' => '示例说明', 'auto_unsuspend_time' => 1752984000];
$result = (new \app\common\model\HostModel())->suspendAccount($param);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
param.id | int | 是 | — | require | 产品ID |
param.suspend_type | string | 否 | overdue | — | 暂停类型(overdue=到期暂停,overtraffic=超流暂停,certification_not_complete=实名未完成,other=其他,downstream=下游暂停) |
param.suspend_reason | string | 否 | — | — | 暂停原因 |
param.auto_unsuspend_time | int | 否 | — | — | 自动解除暂停时间 |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
status | int | 状态(200=成功,400=失败) |
msg | string | 信息 |
正常返回
{
"status": 1,
"msg": "string"
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |