网站信息保存
开发中
POST
/adminapi/setting.website/setWebsite
请求参数
Header 参数
token
string
可选
示例值:
{{adminToken}}
Body 参数application/json
name
string
网站名称
web_favicon
string
站点图标
web_logo
string
网站Logo
login_image
string
登录页广告图
pc_logo
string
PC端Logo
pc_title
string
PC端名称
pc_ico
string
PC端图标
pc_cover
string
PC端登录封面
pc_desc
string
PC端描述
pc_keywords
string
PC端关键词
示例
{
"name": "likeadmin",
"web_favicon": "http://www.php-ws.localhost/resource/image/adminapi/default/web_favicon.ico",
"web_logo": "http://www.php-ws.localhost/resource/image/adminapi/default/web_logo.jpg",
"login_image": "http://www.php-ws.localhost/resource/image/adminapi/default/login_image.png",
"pc_logo": "http://www.php-ws.localhost/resource/image/adminapi/default/pc_logo.png",
"pc_title": "",
"pc_ico": "http://www.php-ws.localhost/resource/image/adminapi/default/web_favicon.ico",
"pc_cover": "http://www.php-ws.localhost/resource/image/adminapi/default/web_favicon.ico",
"pc_desc": "",
"pc_keywords": ""
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/adminapi/setting.website/setWebsite' \
--header 'token: {{adminToken}}' \
--header 'token;' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "likeadmin",
"web_favicon": "http://www.php-ws.localhost/resource/image/adminapi/default/web_favicon.ico",
"web_logo": "http://www.php-ws.localhost/resource/image/adminapi/default/web_logo.jpg",
"login_image": "http://www.php-ws.localhost/resource/image/adminapi/default/login_image.png",
"pc_logo": "http://www.php-ws.localhost/resource/image/adminapi/default/pc_logo.png",
"pc_title": "",
"pc_ico": "http://www.php-ws.localhost/resource/image/adminapi/default/web_favicon.ico",
"pc_cover": "http://www.php-ws.localhost/resource/image/adminapi/default/web_favicon.ico",
"pc_desc": "",
"pc_keywords": ""
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
name
string
网站名称
web_logo
string
网站Logo
web_favicon
string
站点图标
login_image
string
登录页广告图
pc_logo
string
PC端Logo
pc_title
string
PC端名称
pc_ico
string
PC端图标
pc_desc
string
PC端描述
pc_keywords
string
PC端关键词
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"name": "likeadmin",
"web_favicon": "http://www.php-ws.localhost/resource/image/adminapi/default/web_favicon.ico",
"web_logo": "http://www.php-ws.localhost/resource/image/adminapi/default/web_logo.jpg",
"login_image": "http://www.php-ws.localhost/resource/image/adminapi/default/login_image.png",
"pc_logo": "http://www.php-ws.localhost/resource/image/adminapi/default/pc_logo.png",
"pc_title": "",
"pc_ico": "http://www.php-ws.localhost/resource/image/adminapi/default/web_favicon.ico",
"pc_desc": "",
"pc_keywords": ""
}
}
修改于 2023-11-30 07:02:54