创建会员卡信息接口
接口地址:https://api.weixin.qq.com/card/create?access_token=TOKEN
其中的background_pic_url参数值是通过上传素材接口(https://api.weixin.qq.com/cgi-bin/media/uploadimg?access_token=)返回的,接口返回图片域名
为:mmecoa.qpic.cn 报错如下
{
"errcode": 40141,
"errmsg": "invalid image url hint: [SmrKPa06135850]"
}
参数如下:
{
"card": {
"card_type": "MEMBER_CARD",
"member_card": {
"background_pic_url": "http://mmecoa.qpic.cn/sz_mmecoa_jpg/NMMpd2ylRbaw5ljSIAdnQlXrr6XibNKSf9YOOgvwbP3vU72XxMIAONsRib7RKpa8Eib1GmvWY5jbeeX1zDHGPMkicg/0?from=appmsg",
"base_info": {
"brand_name": "千方会员迭代",
"code_type": "CODE_TYPE_QRCODE",
"title": "会员迭代测试",
"notice": "请让营业员扫码录入会员",
"color": "Color010",
"description": "",
"date_info": {
"type": "DATE_TYPE_PERMANENT"
},
"sku": {
"quantity": 100000000
},
"get_limit": 1,
"use_custom_code": false,
"custom_url_name": "余额充值",
"custom_url": "http://qfbj.rwxqfbj.com:5002/wisemedical/mobile/#/memberCenter/recharge?corpId=195478",
"custom_url_sub_title": "充值限时优惠",
"promotion_url_name": "优惠券",
"promotion_url": "http://qfbj.rwxqfbj.com:5002/wisemedical/mobile/#/memberCenter/coupon?corpId=195478",
"can_share": false,
"can_give_friend": false
},
"supply_balance": false,
"supply_bonus": false,
"prerogative": "测试",
"wx_activate": true,
"discount": 0,
"custom_field1": {
"name": "等级",
"name_type": "FIELD_NAME_TYPE_LEVEL",
"url": "http://qfbj.rwxqfbj.com:5002/wisemedical/mobile/#/memberLevel?corpId=195478"
},
"custom_field2": {
"name": "余额",
"name_type": "FIELD_NAME_TYPE_SET_POINTS",
"url": "http://qfbj.rwxqfbj.com:5002/wisemedical/mobile/#/memberCenter/balance?corpId=195478"
},
"custom_field3": {
"name": "积分",
"name_type": "FIELD_NAME_TYPE_TIMS",
"url": "http://qfbj.rwxqfbj.com:5002/wisemedical/mobile/#/memberCenter/integral?corpId=195478"
},
"custom_cell1": {
"name": "会员中心",
"tips": "",
"url": "http://qfbj.rwxqfbj.com:5002/wisemedical/mobile/#/memberCenter/centerindex?corpId=195478"
},
"custom_cell2": null
}
}
}
你好 已修复 请重试
background_pic_url有长度限制且必须为mmbiz.qpic.cn域名的图片