批量请求接口
Json格式的Put参数或键值对参数二选一
{
"method": {
... // 参数列表
},
"controller.method": {
... // 参数列表
},
"mykey": {
"call": "controller.method",
... // 参数列表
}
}
Json (data 代表单独请求接口时接口返回的data字段值)
{
"code": 1,
"msg": "",
"time": 1630133640,
"data":{
"method": data,
"controller.method": data,
"mykey": data
}
}
methods=advs,article.get_cates&flag=banner&pid=1
返回结果
{
"code": 1,
"msg": "",
"time": 1630111504,
"data": {
"advs": [
{
"id": 1,
"lang": "",
"main_id": 0,
"group_id": 1,
"title": "test",
"image": "\/uploads\/banner\/2021\/07\/8d9dbb09a70b3fd9777daaac29da28bb.jpg",
"video": "",
"url": "",
"elements": [],
"ext_data": null,
"start_date": 0,
"end_date": 0,
"create_time": 0,
"update_time": 0,
"sort": 0,
"status": 1,
"ext": []
},
...
],
"article.get_cates": [
{
"id": 4,
"pid": 1,
"title": "PHP",
"short": "PHP",
"name": "PHP",
"icon": null,
"image": null,
"sort": 1,
"props": null,
"fields": null,
"list_sort": null,
"pagesize": 12,
"use_template": 0,
"template_dir": "0",
"channel_mode": 0,
"is_comment": 0,
"is_images": 0,
"is_attachments": 0,
"keywords": null,
"description": null,
"html": "│ ├─"
},
...
]
}
}
{
"advs" => { "flag" => "banner"},
"article.get_cates" => {
"pid" => 0
},
"subcates" => {,
"call"=>"article.get_cates",
"pid" => 1
}
}
返回结果
{
"code": 1,
"msg": "",
"time": 1630111504,
"data": {
"advs": [
{
"id": 1,
"lang": "",
"main_id": 0,
"group_id": 1,
"title": "test",
"image": "\/uploads\/banner\/2021\/07\/8d9dbb09a70b3fd9777daaac29da28bb.jpg",
"video": "",
"url": "",
"elements": [],
"ext_data": null,
"start_date": 0,
"end_date": 0,
"create_time": 0,
"update_time": 0,
"sort": 0,
"status": 1,
"ext": []
},
...
],
"article.get_cates": [
{
"id": 1,
"pid": 0,
"title": "日志",
"short": "日志",
"name": "blog",
"icon": null,
"image": null,
"sort": 1,
"props": null,
"fields": null,
"list_sort": null,
"pagesize": 12,
"use_template": 0,
"template_dir": "0",
"channel_mode": 0,
"is_comment": 0,
"is_images": 0,
"is_attachments": 0,
"keywords": null,
"description": null,
"html": "├─"
},
...
],
"subcates": [
{
"id": 4,
"pid": 1,
"title": "PHP",
"short": "PHP",
"name": "PHP",
"icon": null,
"image": null,
"sort": 1,
"props": null,
"fields": null,
"list_sort": null,
"pagesize": 12,
"use_template": 0,
"template_dir": "0",
"channel_mode": 0,
"is_comment": 0,
"is_images": 0,
"is_attachments": 0,
"keywords": null,
"description": null,
"html": "│ ├─"
},
...
]
}
}
全站搜索
{
"code": 1,
"msg": "",
"time": 1630133640,
"data": {
"lists":[], // 列表数据
"page": 1, // 当前页码
"total": 100, // 总数量
"total_page": 10, // 总页数
}
}
展位
{
"code": 1,
"msg": "",
"time": 1630133640,
"data": {
"lists":[], // 列表数据,具体内容根据展位设置而定
"page": 1, // 当前页码
"total": 100, // 总数量
"total_page": 10, // 总页数
}
}
广告图
{
"code": 1,
"msg": "",
"time": 1630133640,
"data": [
{
"id": 1,
"lang": "",
"main_id": 0,
"group_id": 1,
"title": "test",
"image": "\/uploads\/banner\/2021\/07\/8d9dbb09a70b3fd9777daaac29da28bb.jpg",
"video": "",
"url": "",
"elements": [],
"ext_data": null,
"start_date": 0,
"end_date": 0,
"create_time": 0,
"update_time": 0,
"sort": 0,
"status": 1,
"ext": []
}
]
}
公告
id
后flag
参数无效{
"code": 1,
"msg": "",
"time": 1630133640,
"data": {
"id":1,
"title": "公告标题",
"page": "",
"url": "",
"status": "",
"manager_id": 1,
"summary": "公告摘要",
"content": "公告内容",
"create_time":1475412326,
"update_time":1475412326
}
}
公告列表
{
"code": 1,
"msg": "",
"time": 1630133640,
"data": [
{
"id":1,
"title": "公告标题",
"page": "",
"url": "",
"status": "",
"manager_id": 1,
"summary": "公告摘要",
"create_time":1475412326,
"update_time":1475412326
},
...
]
}
友链
{
"code": 1,
"msg": "",
"time": 1630133640,
"data": [
{
"id":1,
"title": "链接名称",
"group": "",
"logo": "",
"status": "",
"url": "链接地址",
"sort": 1,
"create_time":1475412326,
"update_time":1475412326
},
...
]
}
留言提交
{
"code": 1,
"msg": "提交成功",
"time": 1630133640
}
留言列表
{
"code": 1,
"msg": "",
"time": 1630133640,
"data": {
"lists": [], // 数据列表
"total": 100, // 总条数
"page": 1, // 当前页码
"total_page": 10
}
}
网站配置(通用配置的部分) 留言列表
无
{
"code": 1,
"msg": "",
"time": 1630133640,
"data": {
"webname": "ShirneCMS",
"keywords": "关键词1,关键词2",
"description": "站点描述信息",
"weblogo": "",
"close": "0",
"close-desc": "系统维护中",
"shareimg": "",
"tongji": "",
"icp": "",
"gongan-icp": "",
"url": "https:\/\/www.shirne.com",
"name": "ShirneCMS",
"400": "",
"email": "",
"telephone": "",
"address": "",
"location": ""
}
}
获取指定分组(除third外)的配置
单个分组的请求
// 请求参数 group=common
{
"code": 1,
"msg": "",
"time": 1630133640,
"data": {
"webname": "ShirneCMS",
"keywords": "关键词1,关键词2",
"description": "站点描述信息",
"weblogo": "",
"close": "0",
"close-desc": "系统维护中",
"shareimg": "",
"tongji": "",
"icp": "",
"gongan-icp": "",
"url": "https:\/\/www.shirne.com",
"name": "ShirneCMS",
"400": "",
"email": "",
"telephone": "",
"address": "",
"location": ""
}
}
多个分组的请求
// 请求参数 group=common,member
{
"code": 1,
"msg": "",
"data": {
"common":{
"webname": "ShirneCMS",
"keywords": "关键词1,关键词2",
"description": "站点描述信息",
"weblogo": "",
"close": "0",
"close-desc": "系统维护中",
"shareimg": "",
"tongji": "",
"icp": "",
"gongan-icp": "",
"url": "https:\/\/www.shirne.com",
"name": "ShirneCMS",
"400": "",
"email": "",
"telephone": "",
"address": "",
"location": ""
},
"member":{
"m_open": "1",
"m_register_open": "1",
"m_register": "0",
"m_invite": "1",
"m_checkcode": "1",
"anonymous_comment": "1",
"autoaudit": "1",
"commission_type": "0",
"agent_start": "0",
"commission_delay": "0",
"commission_delay_days": "0",
"cash_types": [],
"cash_fee": "10",
"cash_fee_min": "1",
"cash_fee_max": "50",
"cash_limit": "10",
"cash_max": "100000",
"cash_power": "100",
"share_product": ""
}
}
}
签到排行
{
"code":1,
"msg":"",
"time":1630133833,
"data":[
... //签到列表
]
}
公用数据
{
"code": 1,
"msg": "",
"time": 1630134045,
"data": {
"levels": {
"1": {
"level_id": 1,
"level_name": "普通会员",
"short_name": "普",
"style": "secondary",
"is_default": 1,
"upgrade_type": 0,
"diy_price": 0,
"level_price": "0.00",
"discount": 100,
"is_agent": 0,
"sort": 0,
"commission_layer": 3,
"commission_limit": 0,
"commission_percent": [
"0",
"0",
"0"
]
}
},
"agents": []
}
}
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )