物理服务器轮播图列表
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\PhysicalServerBannerModel::bannerList |
| 所属业务 | 站点内容 |
| 来源模块/系统 | 模板控制器 |
功能说明
物理服务器轮播图列表
调用示例
$result = (new \app\common\model\PhysicalServerBannerModel())->bannerList();参数
该函数/方法无需传入参数。
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list | array | 轮播图 |
list[].id | int | 轮播图ID |
list[].img | string | 图片 |
list[].url | string | 跳转链接 |
list[].start_time | int | 展示开始时间 |
list[].end_time | int | 展示结束时间 |
list[].show | int | 是否展示0否1是 |
list[].notes | string | 备注 |
正常返回
{
"list": [
{
"id": 1,
"img": "string",
"url": "https://example.com/callback",
"start_time": 1752984000,
"end_time": 1752984000,
"show": 1,
"notes": "示例说明"
}
]
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |