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

    技术2022-07-11  91

    这是一个近期报出的错误 只需要在后面加上catch就可以解决这个报错

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

     

    Processed: 0.011, SQL: 9