网站底部栏数据
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\BottomBarNavModel::webFooterNav |
| 所属业务 | 站点内容 |
| 来源模块/系统 | 模板控制器 |
功能说明
网站底部栏数据
调用示例
$language = 'zh-cn';
$result = (new \app\common\model\BottomBarNavModel())->webFooterNav($language);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
language | mixed | 否 | 'zh-cn' | optional | 由 PHP 方法签名补全 |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list | array | 分组 |
list[].id | int | 分组ID |
list[].name | string | 名称 |
list[].children | array | 导航 |
list[].children[].id | int | 导航ID |
list[].children[].group_id | int | 分组ID |
list[].children[].name | string | 名称 |
list[].children[].url | string | 跳转地址 |
list[].children[].blank | int | 是否打开新窗口0否1是 |
正常返回
{
"list": [
{
"id": 1,
"name": "示例名称",
"children": [
{
"id": 1,
"group_id": 1,
"name": "示例名称",
"url": "https://example.com/callback",
"blank": 1
}
]
}
]
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |