代码如下:
wx.addCard({
cardList: [{
cardId: '******************',
cardExt: '{"timestamp":"*************","nonce_str":"*************","signature":"*************","api_ticket:":"****************"}'
}], // 需要添加的卡券列表
success: function (res) {
var cardList = res.cardList; // 添加的卡券列表信息
}
});
addCard:fail
这里,一般都是签名问题导致 ,请参考:https://developers.weixin.qq.com/community/develop/doc/000404202081a0b0f15b90f6f5f409