获取站点配置
GET
/api/site/config修改时间: 1 个月前
用于获得当前站点配置信息,包括站点名称、验证码相关、邮件相关与站点公告。
请求参数
无
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
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
消息
示例成功(200)
{
"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": ""
}
修改于 1 个月前