小程序拨打电话api报错makePhoneCall:fail cancel

wx.makePhoneCall({
   phoneNumber: app.globalData.phoneNumber,
 })

  

wx.makePhoneCall({
  phoneNumber:app.globalData.phoneNumber,
}).catch((e) => {
  // console.log(e)  //用catch(e)来捕获错误{makePhoneCall:fail cancel}
})

  

原文地址:https://www.cnblogs.com/wuyongcong/p/15323456.html