Invoking task timed out after 3 seconds?
调用腾讯云的api的时候出现了超时错误 [图片] //OCR名片识别
callOCR(_url) {
console.log(_url);
wx.cloud.callFunction({
name: 'OCR',
data: {
url: _url
// 'https://riyugo.com/i/2021/02/24/opfo6.png'
}
})
.then(res => {
console.log('OCR返回结果', res)
})
.catch(res => {
console.log('callOCRfunction错误信息: ', res)
})
},
//提交图片url
handleSubmitImg() {
//TODO:获取转码后图片的url
// console.log(this.data.ImgUrl);
this.callOCR(this.data.ImgUrl);
},
云函数中的调用参数代码如下: [图片]