获取发送用户
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\logic\SystemNoticeLogic::getSendUser |
| 所属业务 | 消息通知 |
| 来源模块/系统 | 系统通知逻辑 |
功能说明
获取发送用户
调用示例
$result = (new \app\common\logic\SystemNoticeLogic())->getSendUser();参数
该函数/方法无需传入参数。
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
id | int | 用户ID |
type | string | 用户类型(client=用户,admin=管理员) |
phone | string | 手机号 |
phone_code | int | 区号 |
email | string | 邮箱 |
receive_sms | int | 用户是否接收短信(0=不接收,1=接收) |
receive_email | int | 用户是否接收邮箱(0=不接收,1=接收) |
正常返回
{
"id": 1,
"type": "string",
"phone": "13800138000",
"phone_code": 86,
"email": "user@example.com",
"receive_sms": 1,
"receive_email": 1
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |