API接口文档

博客详情

创建于 2021-11-15 / 最近更新于 2021-11-15 / 1342
字体: [默认] [大] [更大]

简要描述

博客详情

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-09-29

请求URL

plugins/index&pluginsname=blog&pluginscontrol=index&pluginsaction=detail

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application string web 请求应用、参考公共中详解
application_client_type string pc 请求客户端、参考公共中详解
token string token

请求参数

{
    "id": 1
}
参数名 是否必须 类型 默认值 描述
id int 博客id

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "base": {
            "application_name": "博客",
            "home_data_list_number": "",
            "home_multigraph_number": "",
            "home_bottom_goods_page_size": "",
            "search_page_size": "",
            "search_right_goods_number": "",
            "right_recommended_number": "",
            "seo_title": "",
            "seo_keywords": "",
            "seo_desc": "",
            "home_bottom_goods_order_by_type": "0",
            "home_bottom_goods_order_by_rule": "0",
            "is_home_hot_auto_play": "1"
        },
        "data": {
            "id": "1",
            "title": "使用小皮面板(phpStudy)一键部署ShopXO教程",
            "blog_category_id": "1",
            "title_color": "",
            "jump_url": "",
            "is_enable": "1",
            "describe": "已安装小皮面板用户跳过 1,2 步骤 1. 进入小皮面板安装页面 https://www.xp.cn/linux.html 2. 获取安装脚本 滚动鼠标到底部或者点击立即安装,根据自身服务器系统选择不同脚本,执行脚本即可",
            "content": "<h4 style=\"box-sizing: border-box; font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-weight: 500; line-height: 1.1; color: rgb(51, 51, 51); margin-top: 10px; margin-bottom: 10px; font-size: 18px; white-space: normal; background-color: rgb(255, 255, 255);\"><span style=\"color:#ff0000\"><span style=\"box-sizing: border-box; font-size: 14px;\">已安装小皮面板用户跳过 1,2 步骤</span></span></h4><h4 style=\"box-sizing: border-box; font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-weight: 500; line-height: 1.1; color: rgb(51, 51, 51); margin-top: 10px; margin-bottom: 10px; font-size: 18px; white-space: normal; background-color: rgb(255, 255, 255);\">1. 进入小皮面板官网安装页面</h4><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\"><a href=\"https://www.xp.cn/linux.html\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: rgb(0, 154, 97); text-decoration-line: none;\">https://www.xp.cn/linux.html</a></p><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\"><br/></p><h4 style=\"box-sizing: border-box; font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-weight: 500; line-height: 1.1; color: rgb(51, 51, 51); margin-top: 10px; margin-bottom: 10px; font-size: 18px; white-space: normal; background-color: rgb(255, 255, 255);\">2. 获取安装脚本</h4><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\">滚动鼠标到底部或者点击立即安装,根据自身服务器系统选择不同脚本,执行脚本即可搭建好环境<span style=\"color:#ff0000\">(部分服务器运营商已提供小皮面板预装服务)</span></p><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\"><a href=\"https://ask.shopxo.net/image/show/attachments-2020-08-jFr9ENww5f3d07cdcdb24.png\" style=\"box-sizing: border-box; background-color: transparent; color: rgb(0, 154, 97); text-decoration-line: none;\"><img style=\"max-width:100%;margin:0;padding:0;display:block;\" src=\"https://ask.shopxo.net/image/show/attachments-2020-08-jFr9ENww5f3d07cdcdb24.png\" class=\"img-responsive\" alt=\"attachments-2020-08-jFr9ENww5f3d07cdcdb24.png\"/></a><a href=\"https://ask.shopxo.net/image/show/attachments-2020-08-Hdg7s7hG5f3d081278209.png\" style=\"box-sizing: border-box; background-color: transparent; color: rgb(0, 154, 97); text-decoration-line: none;\"><img style=\"max-width:100%;margin:0;padding:0;display:block;\" src=\"https://ask.shopxo.net/image/show/attachments-2020-08-Hdg7s7hG5f3d081278209.png\" class=\"img-responsive\" alt=\"attachments-2020-08-Hdg7s7hG5f3d081278209.png\"/></a><span style=\"color:#ff0000\"><br/></span></p><h4 style=\"box-sizing: border-box; font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-weight: 500; line-height: 1.1; color: rgb(51, 51, 51); margin-top: 10px; margin-bottom: 10px; font-size: 18px; white-space: normal; background-color: rgb(255, 255, 255);\">2.1. 环境软件安装</h4><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\">进入面板后台,左侧软件管理->系统环境下面选择相应的服务安装</p><blockquote style=\"box-sizing: border-box; padding: 10px 20px; margin: 0px 0px 20px; font-size: 13px; border-left: 5px solid rgb(238, 238, 238); color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; white-space: normal; background-color: rgb(255, 255, 255);\"><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px;\">各项安装任意一个版本都可以</p><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">web服务安装:nginx  /  apache<br/>php安装: 5.6  /  7.0  /  7.1  /  7.2  /  7.3  /  7.4<br/>mysql安装:5.6  /  5.7</p></blockquote><h4 style=\"box-sizing: border-box; font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-weight: 500; line-height: 1.1; color: rgb(51, 51, 51); margin-top: 10px; margin-bottom: 10px; font-size: 18px; white-space: normal; background-color: rgb(255, 255, 255);\">3. 开始部署ShopXO,左侧菜单</h4><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\">软件管理 -> 网站程序  找到 <span style=\"color:#ff0000\"><span style=\"box-sizing: border-box; font-weight: 700;\">shopxo</span></span> 或者右侧搜索 <span style=\"color:#0000ff\">一键部署</span></p><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\"><a href=\"https://ask.shopxo.net/image/show/attachments-2020-08-XICSxmlo5f3d08dd0d6d8.png\" style=\"box-sizing: border-box; background-color: transparent; color: rgb(0, 154, 97); text-decoration-line: none;\"><img style=\"max-width:100%;margin:0;padding:0;display:block;\" src=\"https://ask.shopxo.net/image/show/attachments-2020-08-XICSxmlo5f3d08dd0d6d8.png\" class=\"img-responsive\" alt=\"attachments-2020-08-XICSxmlo5f3d08dd0d6d8.png\"/></a><span style=\"color:#0000ff\"><br/></span></p><h4 style=\"box-sizing: border-box; font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-weight: 500; line-height: 1.1; color: rgb(51, 51, 51); margin-top: 10px; margin-bottom: 10px; font-size: 18px; white-space: normal; background-color: rgb(255, 255, 255);\">4. 弹窗部署窗口</h4><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\">窗口里面第一个 输入已经解析绑定到服务器的域名,比如我们这里测试域名 xo.com ,数据库名称和密码都可以修改或者使用系统随机生成的。php版本支持5.6+</p><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\"><span style=\"color:#ff0000\">安装完成后,点击安装信息查看站点信息,系统的账号密码,默认管理员:<span style=\"box-sizing: border-box; font-weight: 700;\">admin</span>,默认管理员密码:<span style=\"box-sizing: border-box; font-weight: 700;\">shopxo</span></span></p><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\"><a href=\"https://ask.shopxo.net/image/show/attachments-2020-08-Xm7xbKnq5f3d095a55e92.png\" style=\"box-sizing: border-box; background-color: transparent; color: rgb(0, 154, 97); text-decoration-line: none;\"><img style=\"max-width:100%;margin:0;padding:0;display:block;\" src=\"https://ask.shopxo.net/image/show/attachments-2020-08-Xm7xbKnq5f3d095a55e92.png\" class=\"img-responsive\" alt=\"attachments-2020-08-Xm7xbKnq5f3d095a55e92.png\"/></a></p><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\"><br/></p><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\"><a href=\"https://ask.shopxo.net/image/show/attachments-2020-08-ViLjHbcG5f3d09ad071ad.png\" style=\"box-sizing: border-box; background-color: transparent; color: rgb(0, 154, 97); text-decoration-line: none;\"><img style=\"max-width:100%;margin:0;padding:0;display:block;\" src=\"https://ask.shopxo.net/image/show/attachments-2020-08-ViLjHbcG5f3d09ad071ad.png\" class=\"img-responsive\" alt=\"attachments-2020-08-ViLjHbcG5f3d09ad071ad.png\"/></a><span style=\"color:#ff0000\"><br/></span></p><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\"><a href=\"https://ask.shopxo.net/image/show/attachments-2020-08-2LZcPbV15f3d09d485b65.png\" style=\"box-sizing: border-box; background-color: transparent; color: rgb(0, 154, 97); text-decoration-line: none;\"><img style=\"max-width:100%;margin:0;padding:0;display:block;\" src=\"https://ask.shopxo.net/image/show/attachments-2020-08-2LZcPbV15f3d09d485b65.png\" class=\"img-responsive\" alt=\"attachments-2020-08-2LZcPbV15f3d09d485b65.png\"/></a><span style=\"color:#ff0000\"><br/></span></p><h4 style=\"box-sizing: border-box; font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-weight: 500; line-height: 1.1; color: rgb(51, 51, 51); margin-top: 10px; margin-bottom: 10px; font-size: 18px; white-space: normal; background-color: rgb(255, 255, 255);\">5. 已部署完成</h4><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\">到这里证明小皮(phpStudy)部署shopxo已完成</p><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\"><br/></p><p style=\"margin:0;box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: rgb(51, 51, 51); font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", "Microsoft Yahei", sans-serif; font-size: 14px; white-space: normal; background-color: rgb(255, 255, 255);\">自行安装教程 <a href=\"https://ask.shopxo.net/article/5\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: rgb(0, 154, 97); text-decoration-line: none;\"><span style=\"box-sizing: border-box; font-size: 18px;\">https://ask.shopxo.net/article/5</span></a></p><p style=\"margin:0;\"><br/></p>",
            "cover": "https://d1.shopxo.vip/static/upload/images/plugins_blog/2020/09/30/1601454062139210.jpg",
            "goods_count": "12",
            "images": "",
            "images_count": "0",
            "access_count": "19095",
            "is_recommended": "0",
            "seo_title": "",
            "seo_keywords": "",
            "seo_desc": "",
            "add_time": "2020-09-29 22:19:25",
            "upd_time": "2020-10-03 21:15:01",
            "url": "/pages/plugins/blog/detail/detail?id=1",
            "blog_category_name": "默认分类",
            "goods_list": [
                {
                    "id": "12",
                    "title": "ZK星星绣花雪纺连衣裙中长款sukol裙少女心温柔超仙女chic裙子夏",
                    "images": "https://d1.shopxo.vip/static/upload/images/goods/2019/01/14/1547455890402147.jpg",
                    "min_price": "0.01",
                    "price": "0.01-1.00",
                    "original_price": "0.01-2.00",
                    "price_container": {
                        "price": "0.01-2.00",
                        "min_price": "0.01",
                        "max_price": 0,
                        "original_price": "0.00",
                        "min_original_price": 0,
                        "max_original_price": 0
                    },
                    "goods_url": "https://d1.shopxo.vip/goods/index/id/12.html",
                    "images_old": "/static/upload/images/goods/2019/01/14/1547455890402147.jpg",
                    "show_field_original_price_text": "原价",
                    "show_field_price_text": "<a href=\"https://d1.shopxo.vip/plugins/index/pluginsname/seckill.html\" class=\"plugins-seckill-goods-price-icon\" title=\"秒杀价\">秒杀价</a>",
                    "plugins_view_panel_data": [],
                    "plugins_view_icon_data": []
                }
            ],
            "add_time_date_cn": "09月29日 · 2020年",
            "add_time_date": "2020-09-29"
        },
        "right_list": [
            {
                "id": "7",
                "title": "海亮教育(HLG.US):营收同比增长30%,后疫情时代业绩加速释放",
                "title_color": "",
                "describe": "近日,龙头K-12教育集团海亮教育(HLG.US)公布了2021财年第一季度业绩。截至2020年9月30日止的第一财季,海亮教育实现营业收入为2.985亿元(单位:人民币,下同),同比增长高达29.8%,增速亮眼。规模效应叠加精细化管理及费用控制下,集团的盈利能力进一步提高,同时由于疫情影响导致的一部分2020财年的学费在1Q2021年确认也贡献了一部分收入的增长。该财季公司的毛利率为14.9%,去年同期为-1.5%;归属于公司股东的净利润为2690万元,",
                "cover": "https://d1.shopxo.vip/static/upload/images/plugins_blog/2020/09/30/1601454592334389.jpg",
                "access_count": "15474",
                "add_time": "2020-12-02 22:01:56",
                "url": "/pages/plugins/blog/detail/detail?id=7",
                "add_time_date_cn": "12月02日 · 2020年",
                "add_time_date": "2020-12-02"
            }
        ]
    }
}

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

参数名 是否必须 类型 描述
base array 插件基础数据
data array 博文数据
data -> goods_list array 相关商品
right_list array 推荐博文

备注

更多返回错误代码请看首页的错误代码描述

2 人点赞过