简要描述:

  • 首页

请求域名:

  • http://xx.com

请求URL:

GET/&route=plugin.micro-communities.api.index.index

参数:

参数名 是否必须 类型 说明

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "set": {
			"is_open_micro":1,
            "micro_top": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/08/x1jc6rjjrCYCu8arjJj8y1Srjvuyi8.png",
            "micro_top_jump": "aaa",
            "micro_top_small": "bbb",
            "micro_home_one": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/08/mvTPNdaR4NxPXRYTRzGz4tFVCvgYZg.png",
            "micro_home_one_jump": "111",
		"micro_home_one_jump_pc": "http://localhost:8788/addons/yun_shop/?menu#/member?i=1",
            "micro_home_one_small": "111",
            "micro_home_two": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/08/a22222o2U86Zh392uRr33uUz6o2HdR.png",
            "micro_home_two_jump": "222",
		"micro_home_two_jump_pc": "http://localhost:8788/addons/yun_shop/?menu#/cart?i=1",
            "micro_home_two_small": "222",
            "micro_home_three": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/08/jIomVR2Ws8i2Mi1MazC9A1W2628awj.png",
            "micro_home_three_jump": "333",
		"micro_home_three_jump_pc": "http://localhost:8788/addons/yun_shop/?menu#/cart?i=1",
            "micro_home_three_small": "333",
            "show_sign": "1",
            "show_clock": "1",
            "show_video": "1",
            "show_qr": 0
        },
        "trick_num": 1,
        "browse_num": 0,
        "cate": [
            {
                "id": 1,
                "name": "测试",
                "icon": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/08/iR2M1S2x0X2Fv2VvSmX2Usvooc7vsz.png"
            },
            {
                "id": 2,
                "name": "测试2",
                "icon": "http://test-1251768088.cosgz.myqcloud.com/images/3/2019/08/aj9L69FuMZvRz9ENzsS6Gr66RenzL6.png"
            }
        ]
    }
}

错误时返回:

返回参数说明:

参数名 类型 说明
is_open_micro int 插件开启状态 1-开启 0-关闭
micro_top int 顶部背景图
micro_top_jump int 跳转链接
micro_top_small int 小程序跳转
micro_home_one string 微社区首页轮播一
micro_home_one_jump string 跳转链接
micro_home_one_jump_pc string PC端跳转链接
micro_home_one_small string 小程序跳转
micro_home_two string 微社区首页轮播二
micro_home_two_jump string 跳转链接
micro_home_two_jump_pc string PC端跳转链接
micro_home_two_small string 小程序跳转
micro_home_three string 微社区首页轮播三
micro_home_three_jump string 跳转链接
micro_home_three_jump_pc string PC端跳转链接
micro_home_three_small string 小程序跳转
show_sign string 签到
show_clock string 打卡
show_video string 视频
show_qr string 二维码
trick_num string 帖子总数
browse_num string 浏览总数
cate string 分类