API Call Address
{域名地址}/api/setting/system
Description:{域名地址}Need to replace it with your domain address, such ashttps://en.anqicms.com/api/setting/system
Calling method
GET
Request parameters
None
Return parameters
| Field name | Type | Description |
|---|---|---|
| code | int | error code |
| msg | string | error reason description |
| data | object | result content |
data result parameters
| Field name | Type | Description |
|---|---|---|
| Site Name | string | Website Name |
| Site Logo | string | Website Logo |
| Site ICP | string | Website Record Number |
| SiteCopyright | string | Copyright Content |
| BaseUrl | string | Website Home Address |
| MobileUrl | string | Website Mobile End Address |
| TemplateUrl | string | Template Static Files Address |
| Custom parameters | string | Custom parameters in the background system settings |
request data example
None
Return Data Example
HelpUrl is the specified parameter, and more custom parameters will also be displayed here
{
"code": 0,
"data": {
"AdminUrl": "",
"BaseUrl": "http://www.anqicms.com",
"HelpUrl": "https://en.anqicms.com/help",
"Language": "zh",
"MobileUrl": "https://m.anqicms.com/",
"SiteClose": 0,
"SiteCloseTips": "",
"SiteCopyright": "<p>版权所有,仿冒必究</p>",
"SiteIcp": "粤ICP备12345678号",
"SiteLogo": "http://www.anqicms.com/uploads/20225/22/555288fdec958ee7.webp",
"SiteName": "这是网站标题2",
"TemplateName": "default",
"TemplateType": 0,
"TemplateUrl": ""
},
"msg": ""
}
Error Code
| error code | Description |
|---|---|
| 0 | OK |
| -1 | Error, the reason is indicated in the msg |
| 1001 | Not logged in |
| 1002 | Unauthorized |
| 200 | API request OK |