获取站点配置
GET
/api/site/config
最后修改时间:2024-08-15 11:51:05
请求参数
Cookie 参数
session
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://127.0.0.1:8080/api/site/config' \
--header 'Cookie: session='
返回响应
🟢200成功
application/json
Body
code
integer
状态码
data
object
数据
title
string
站点名
loginCaptcha
boolean
登录验证码
regCaptcha
boolean
注册验证码
forgetCaptcha
boolean
找回密码验证码
emailActive
boolean
邮 箱激活
phoneActive
boolean
手机号激活
site_notice
string
全局公告
captcha_type
string
验证码类型
captcha_ReCaptchaKey
string
谷歌验证码公钥
tcaptcha_captcha_app_id
string
腾讯验证码AppID
msg
string
消息
示例
{
"code": 200,
"data": {
"title": "海枫授权系统",
"loginCaptcha": false,
"regCaptcha": true,
"forgetCaptcha": true,
"emailActive": true,
"phoneActive": true,
"site_notice": "<p>站点公告</p>",
"captcha_type": "recaptcha",
"captcha_ReCaptchaKey": "XXXXXXXXXXXXXXXX",
"tcaptcha_captcha_app_id": ""
},
"msg": ""
}
修改于 2024-08-15 11:51:05