我也遇到这个问题,同问,是小程序自带的问题吗
createRequestTask:fail: jsapi has no permission?request:fail createRequestTask:fail: jsapi has no permission, event=createRequestTask, runningState=suspend, permissionMsg=permission ok, detail=network api interrupted in suspend state 请问这个怎么处理?偶尔会提示这个 [图片]
2022-07-20wx.getSetting({ success(res) { console.log(res) if(res.authSetting['scope.invoice']){ wx.chooseInvoiceTitle({ success(res){ /*bankAccount: "6228270397012770479" bankName: "农业银行" companyAddress: "山东省青岛市胶州市胶西办事处郭家河涯20号" errMsg: "chooseInvoiceTitle:ok" taxNumber: "91370281MA3RUB5K6J" telephone: "15205185207" title: "青岛佳佳乐劳保防护用品有限公司" type: "0"*/ if(res.errMsg=='chooseInvoiceTitle:ok'){ that.setData({ 'param.name':res.title, 'param.taxNumber':res.taxNumber, 'param.address':res.companyAddress, 'param.mobile':res.telephone, 'param.bank':res.bankName, 'param.account':res.bankAccount }) that.invoiceTitle() }else{ app.toast('公司抬头导入失败') } console.log(res) }, fail(res){ console.log(res) }, complete(res){ console.log(res) } }) } } })
小程序导入微信发票抬头失败[图片] [图片]
2021-03-19