>生成海报图片推广获取参数 ~~~[api] get:/index.php/recommend/Apiposter/member_getInfo <<< success { "err": 0, "count": 1, "data": [ { "id": "1563444720923", "bgUrl": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "elem": { "headImg": 1, "headText": 1, "qrCode": 1, "productImg": 1, "productText": 1 }, "headImg": { "x": 230, "y": 100, "w": 150, "h": 150, "headImg": "http://open.cowcms.com/Public/css_js_font_img/plugg/img/logo.png", "opacity": 10 }, "headText": { "color": "#000000", "font_size": 20, "x": 200, "y": 260, "opacity": 10, "text": "COWCMS-,#nickname#" }, "qrCode": { "x": 210, "y": 695, "w": 150, "h": 150, "opacity": 10 }, "productImg": { "x": 55, "y": 350, "w": 495, "h": 200, "opacity": 10 }, "productText": { "color": "#000000", "font_size": 20, "x": 210, "y": 575, "opacity": 10, "text": "COWCMS-#title#" } } ] } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ | 字段 | 详情 | | --- | --- | | count | 海报个数 | | id| 海报唯一标识 | | bgUrl| 海报背景图片连接 | | elem| 海报显示隐藏元素 1:显示,0:不显示 。 headImg:头像,headText:昵称,qrCode:二维码,productImg:产品图片,productText:产品标题 | | x ,y| 元素的 左边距,上边距,单位为px | | w ,h| 元素的 宽,高,单位为px | | opacity| 元素的透明度,1-10 | | headImg| 头像元素的图片连接 | | color| 文字元素的文本颜色 | | font_size| 文字元素的文本大小 | | text| 文字元素的文本内容 | >获取公众号二维码 ~~~[api] get:/index.php/recommend/Apiposter/get_qrcode <<< success { "err": 0, "count": 1, "data": { "wx_qrcode": "http://tp.tybxkj.cc/public/Upload/administrator/1//2zb6f61qoie1564999354212.jpg" } } <<< error { "err": 1, "code": 1000, "content": "错误信息" } ~~~ >[danger] 注意:在获取二维码图片时,请确保在运营-》微信中上传微信图片