已经在config中注册成功
调用checkJsApi以后是成功的
wx.ready(() => {
wx.checkJsApi({
jsApiList: ['chooseInvoice'],
success() {
// 这里传递的参数和config注册接口填写的参数一致
console.log(that.$store.state.timestamp, that.$store.state.nonceStr);
try {
wx.invoke(
'chooseInvoice',
{
timestamp: that.$store.state.timestamp,
nonceStr: that.$store.state.nonceStr,
},
(res) => {
console.log('chooseInvoice:', JSON.stringify(res));
},
);
} catch (err) {
console
但是唤起的时候失败
这是为什么?是公众号需要线下配置么?
大佬,解决了吗