- 想将wxml-to-canvas 封成一个海报组件,组件里调用报错,怎么解决?
[图片]
2020-04-20 - 文本内容安全检查接口,内部报错。什么原因啊?之前用着没事,突然就不行了
[图片] 上面是问题截图. function contentCheck(content){ console.log("contentCheck-----",content) var d = Date.now() return new Promise((resolve,reject)=>{ wx.serviceMarket.invokeService({ service: 'wxee446d7507c68b11', api: 'msgSecCheck', data: { "Action": "TextApproval", "Text": content }, }).then(res => { var type = Object.prototype.toString.call(res.data).slice(8,-1) var response = '' if(type=='Object'){ response = res.data }else{ response =JSON.parse(res.data) } console.log("JSON",response) var List = response.Response.EvilTokens var arr = [] var i = 0; List.forEach(e => { e.EvilKeywords.forEach(item=>{ arr[i] =item i++ }) }); arr =[...new Set(arr)] resolve(arr) }).catch(err=>{ console.log("--err",err) reject(err) }) }) }
2020-03-06