API生成的会员卡,为什么没有二维码选项呢,
Json如下:
{
"card": {
"card_type": "MEMBER_CARD",
"member_card": {
"background_pic_url": "https://xxx.jpeg",
"base_info": {
"logo_url": "https://...png",
"brand_name": "xxx",
"is_pay_and_qrcode": true,
"code_type": "CODE_TYPE_BARCODE",
"title": "会员尊享卡测试",
"color": "Color060",
"notice": "到店出示会员卡由店员完成核销操作",
"service_phone": "",
"description": "",
"use_all_locations": true,
"sku": {
"quantity": 100000000
},
"date_info": {
"type": "DATE_TYPE_PERMANENT"
},
"get_limit": 1,
"can_give_friend": false,
"use_custom_code": true
},
"advanced_info": {
"text_image_list": [{
"image_url": "xxx.jpeg",
"text": ""
}, {
"image_url": "xxx.jpeg",
"text": ""
}],
"time_limit": [{
"type": "MONDAY"
}, {
"type": "TUESDAY"
}, {
"type": "WEDNESDAY"
}, {
"type": "THURSDAY"
}, {
"type": "FRIDAY"
}, {
"type": "SATURDAY"
}, {
"type": "SUNDAY"
}],
"business_service": "BIZ_SERVICE_FREE_WIFI"
},
"wx_activate": true,
"wx_activate_after_submit": true,
"wx_activate_after_submit_url": "http://www.xxx.cn/activate.php",
"supply_bonus": true,
"supply_balance": false,
"prerogative": "会员尊享卡是唯一身份象征,可享受专属服务特权,会籍终身有效。\r\n 会员可在全国连锁门店消费使用。\r\n 特权服务持续更新,为您专享,使用本卡请遵守会员章程。",
"bonus_rule": {
"cost_money_unit": "1000",
"increase_bonus": "1",
"cost_bonus_unit": "100",
"reduce_money": "100"
}
}
}
}
在API接口中,需要传入一个boolean值,JSON路径是 card/member_card/base_info/is_pay_and_qrcode,置成true,用/card/update接口更新一把看看。