简要描述:

获取已上传图片列表

请求域名:

  • http://xx.com

请求URL:

plugin.decorate.admin.decorate-common.get-local-list

参数:

参数名 是否必须 类型 说明
year number
month number

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "获取成功",
    "data": {
        "data": [
            {
                "id": 416,
                "url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/08/O9q052z2fZk0Avfw06Q36Fw0fAfWf5.jpg"
            },
            {
                "id": 415,
                "url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/08/wk8iZ2aj2s9yyCy2Aiij8SScfcpcii.jpg"
            },
            {
                "id": 414,
                "url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/08/R8dW80DcTG1811GwC8cOd5gd2DCwdC.jpg"
            },
            {
                "id": 413,
                "url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/08/V9Jsbphu2pBi3uUb75SuUbj3i55hUT.jpg"
            },
            {
                "id": 412,
                "url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/07/l3JWEWPe52iawd6GYiJU3EjGE3jI2u.jpg"
            },
            {
                "id": 411,
                "url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/07/q4H9hi4a22D364es3Z3zhe438U94do.jpg"
            },
            {
                "id": 410,
                "url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/07/aFzF2zlcS2HirFgs6boHbSSH2L7di2.jpg"
            },
            {
                "id": 409,
                "url": "http://www.yzdev8.com/static/upload/images/1/2020/07/ThmAfz69Too3ZrUuAYyErrooNUdTnO.jpg"
            },
            {
                "id": 408,
                "url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/07/E3WMIkZLpg2Miy4fgL23ZLgZYmlGSV.jpg"
            },
            {
                "id": 407,
                "url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/07/YXwxzcXcZSf1rqF2c5q3271sQQQXXQ.jpg"
            },
            {
                "id": 406,
                "url": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/images/1/2020/07/s7N7a3r2wCDNI5iw2cXeaNOm2bdzEd.jpg"
            },
            {
                "id": 405,
                "url": "http://www.yzdev8.com/static/upload/images/1/2020/07/E1KGiGD0kgDDFHp38fBBMM1FdDhMMh.jpg"
            },
            {
                "id": 404,
                "url": "http://www.yzdev8.com/static/upload/images/1/2020/07/lR9SqqJq2q4193JRjnjN2N111OjNvj.jpg"
            },
            {
                "id": 403,
                "url": "http://www.yzdev8.com/static/upload/images/1/2020/07/jugL5TOwX4Q45XQzUOX95U55xuQhGG.jpg"
            },
            {
                "id": 402,
                "url": "http://www.yzdev8.com/static/upload/images/1/2020/07/ksUgkMu89umMm8VImEVeQgZMd8Fubk.jpg"
            }
        ],
        "total": 271,
        "per_page": 15,
        "last_page": 19,
        "prev_page_url": null,
        "next_page_url": "http://www.yzdev8.com/addons/yun_shop/api.php?page=2",
        "current_page": 1,
        "from": 1,
        "to": 15
    }
}

错误时返回:

{
    "result": 0,
    "msg": "暂无数据",
    "data": []
}

返回参数说明:

参数名 类型 说明
data[total] int 数据总条数
data[per_page] int 每页显示多少条数据
data[current_page] int 当前页
data[data][id] string 主键ID
data[data][url] int 图片地址

备注:

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