会员中心首页
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\ClientModel::indexClient2 |
| 所属业务 | 用户管理 |
| 来源模块/系统 | 用户模型 |
功能说明
会员中心首页
调用示例
$id = 1;
$result = (new \app\common\model\ClientModel())->indexClient2($id);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
id | int | 是 | — | required | 用户ID |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
username | string | 姓名 |
email | string | 邮箱 |
phone_code | int | 国际电话区号 |
phone | string | 手机号 |
credit | string | 余额 |
host_num | string | 产品数量 |
host_active_num | string | 激活产品数量 |
expiring_count | int | 即将到期产品数量 |
unpaid_order | string | 未支付订单 |
consume | string | 总消费金额 |
this_month_consume | string | 本月消费 |
this_month_consume_percent | string | 本月消费对比上月增长百分比 |
正常返回
{
"username": "示例名称",
"email": "user@example.com",
"phone_code": 86,
"phone": "13800138000",
"credit": "string",
"host_num": "string",
"host_active_num": "string",
"expiring_count": 1,
"unpaid_order": "string",
"consume": "string",
"this_month_consume": "string",
"this_month_consume_percent": "string"
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |