获取系统设置
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\ConfigurationModel::systemList |
| 所属业务 | 公共接口 |
| 来源模块/系统 | 用户模型 |
功能说明
获取系统设置
调用示例
$result = (new \app\common\model\ConfigurationModel())->systemList();参数
该函数/方法无需传入参数。
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
lang_admin | string | 后台默认语言 |
lang_home_open | int | 前台多语言开关:1开启0关闭 |
lang_home | string | 前台默认语言 |
maintenance_mode | int | 维护模式开关:1开启0关闭 |
maintenance_mode_message | string | 维护模式内容 |
website_name | string | 网站名称 |
website_url | string | 网站域名地址 |
terms_service_url | string | 服务条款地址 |
terms_privacy_url | string | 隐私条款地址 |
system_logo | string | 系统LOGO |
client_start_id_value | int | 用户注册开始ID |
order_start_id_value | int | 用户订单开始ID |
clientarea_url | string | 会员中心地址 |
www_url | string | 官网地址 |
tab_logo | string | 标签页LOGO |
home_show_deleted_host | int | 前台是否展示已删除产品:1是0否 |
prohibit_user_information_changes | array | 禁止用户信息变更 |
user_information_fields | array | 用户信息字段 |
user_information_fields.id | `int | string` |
user_information_fields.name | string | 用户信息字段名称 |
clientarea_logo_url | string | 会员中心LOGO跳转地址 |
clientarea_logo_url_blank | int | 会员中心LOGO跳转是否打开新页面:1是0否 |
customfield | array | 自定义参数 |
ip_white_list | string | IP白名单 |
global_list_limit | int | 全局列表展示条数 |
donot_save_client_product_password | int | 不保存用户产品密码:1是0否 |
正常返回
{
"lang_admin": "string",
"lang_home_open": 1,
"lang_home": "string",
"maintenance_mode": 1,
"maintenance_mode_message": "string",
"website_name": "示例名称",
"website_url": "https://example.com/callback",
"terms_service_url": "https://example.com/callback",
"terms_privacy_url": "https://example.com/callback",
"system_logo": "string",
"client_start_id_value": 1,
"order_start_id_value": 1,
"clientarea_url": "https://example.com/callback",
"www_url": "https://example.com/callback",
"tab_logo": "string",
"home_show_deleted_host": 1,
"prohibit_user_information_changes": [
"string"
],
"user_information_fields": [
{
"id": "string",
"name": "示例名称"
}
],
"clientarea_logo_url": "https://example.com/callback",
"clientarea_logo_url_blank": 1,
"customfield": [
"string"
],
"ip_white_list": "192.0.2.1",
"global_list_limit": 1,
"donot_save_client_product_password": 1
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |