政策协议
开发中
GET
/api/index/policy
请求参数
Query 参数
type
string
必需
示例值:
service
Header 参数
token
string
可选
示例值:
{{apiToken}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/index/policy?type=service' \
--header 'token: {{apiToken}}' \
--header 'token;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
login
object
必需
website
object
必需
domain
string
必需
version
string
必需
copyright
array[string]
必需
qrcode
object
必需
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"login": {
"login_way": [
"1",
"2"
],
"coerce_mobile": 0,
"login_agreement": 1,
"third_auth": 1,
"wechat_auth": 1,
"qq_auth": 0
},
"website": {
"pc_title": "likeadmin",
"pc_logo": "http://www.php-ws.localhost/resource/image/adminapi/default/pc_logo.png",
"pc_ico": "http://www.php-ws.localhost/resource/image/adminapi/default/web_favicon.ico",
"pc_cover": "",
"pc_desc": "",
"pc_keywords": ""
},
"domain": "",
"version": "1.1.0",
"copyright": [],
"qrcode": {
"oa": "",
"mnp": ""
}
}
}
修改于 2024-03-22 10:25:58