简要描述:

  • 获取二维码--海报

请求域名:

  • http://xx.com

请求URL:

member.qrcode.get-poster

参数:

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "成功",
    "data": {
        "id": 8,
        "uniacid": 1,
        "title": "123",
        "type": 2,
        "keyword": "恶趣味去",
        "time_start": 0,
        "time_end": 0,
        "background": "http://www.yzdev8.com/static/upload/images/1/2020/07/local_vuwphOO44u0w4w6QMO6u4TMT4cqZ5C.jpg",
        "style_data": [
            {
                "left": "0px",
                "top": "0px",
                "type": "head",
                "width": "80px",
                "height": "80px",
                "src": "http://thirdwx.qlogo.cn/mmopen/cEM5JWyl9FekStW90tfVx0KaicTdGiaic8GaL9ibUAPEHB1ib5kbhM1INYua7NSibBF4hFJpdE3fpdr8kgqnRxm1RTc8nWRYe4CFoia/132"
            },
            {
                "left": "0px",
                "top": "0px",
                "type": "nickname",
                "width": "80px",
                "height": "40px",
                "size": "16px",
                "color": "#3c4858",
                "src": "卡卡"
            },
            {
                "left": "74px",
                "top": "57px",
                "type": "qr",
                "width": "80px",
                "height": "80px",
                "src": "http://www.yzdev8.com/storage/app/public/qr/1_163781.png"
            },
            {
                "left": "17px",
                "top": "107px",
                "type": "qr_shop",
                "width": "80px",
                "height": "80px",
                "src": "http://www.yzdev8.com/addons/yun_shop/?menu#/home?mid=163781&i=1"
            },
            {
                "left": "117px",
                "top": "54px",
                "type": "img",
                "width": "80px",
                "height": "80px",
                "src": "http://thirdwx.qlogo.cn/mmopen/cEM5JWyl9FekStW90tfVx0KaicTdGiaic8GaL9ibUAPEHB1ib5kbhM1INYua7NSibBF4hFJpdE3fpdr8kgqnRxm1RTc8nWRYe4CFoia/132"
            },
            {
                "left": "133px",
                "top": "163px",
                "type": "qr_app_share",
                "width": "80px",
                "height": "80px",
                "src": "http://www.yzdev8.com/addons/yun_shop/?menu#/member/scaneditmobile?mid=163781&i=1"
            },
            {
                "left": "69px",
                "top": "82px",
                "type": "qr_app_share",
                "width": "80px",
                "height": "80px",
                "src": "http://www.yzdev8.com/addons/yun_shop/?menu#/member/scaneditmobile?mid=163781&i=1"
            },
            {
                "left": "16px",
                "top": "51px",
                "type": "img",
                "width": "80px",
                "height": "80px",
                "src": "http://thirdwx.qlogo.cn/mmopen/cEM5JWyl9FekStW90tfVx0KaicTdGiaic8GaL9ibUAPEHB1ib5kbhM1INYua7NSibBF4hFJpdE3fpdr8kgqnRxm1RTc8nWRYe4CFoia/132"
            }
        ],
        "response_title": "",
        "response_thumb": "",
        "response_desc": "",
        "response_url": "",
        "is_open": 0,
        "auto_sub": 1,
        "status": 0,
        "center_show": 1,
        "created_at": "2020-07-15 14:05:00",
        "updated_at": "2020-07-16 14:36:35",
        "deleted_at": null,
        "short_background": "images/1/2020/07/vuwphOO44u0w4w6QMO6u4TMT4cqZ5C.jpg",
        "app_share_show": 1
    }
}
data[center_show] = 0 返回回这种格式
{
    "result": 1,
    "msg": "成功",
    "data": {
        "image_url": "http://www.yzdev8.com\\storage\\app/public/personalposter/1/fe5e717e482af095a573483766d2e493.png",
        "center_show": "0"
    }
}

错误时返回:

{
    "result": 0,
    "msg": "图片生成失败",
    "data": []
}

返回参数说明:

参数名 类型 说明 st
background string 背景图
center_show string 0 返回的默认图片
data[style_data] array 组件
data[style_data]['type'] array nickname=昵称(文字),head=头像(图片链接), qr=关注二维码(图片链接),qr_shop=推广二维码(链接需要前端生成二维码),qr_app_share=app分享(链接需要前端生成二维码),img=图片(图片链接)
data[style_data]['src'] string 链接,nickname时为用户昵称 具体看type描述

备注:

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