- 一次性订阅消息 发送失败
"errcode":43101,"errmsg":"user refuse to accept the msg 用户已经订阅过了[图片]
2020-12-17 - invokeService base64经过压缩就900k为何报图片超出限制?
vendor.js:477 invokeService fail Error: errCode: 104 | errMsg: invokeService:fail timeout for retry, cannot retry fetching the result anymore (callId: 0.9550760912002947_1608010492827) (trace: 13:34:52 start->13:35:13 timeout, exceed max retry gap); at invokeService api;
2020-12-15 - 微信小程序安卓真机,渲染gif图出现异常
[视频] 测试图片地址: https://cdn.yangjuyi.com/videos/45/2020/12/test.gif
2020-12-12 - wx.serviceMarket.invokeService一直解析失败,如何解决?
{"errMsg":"invokeService:ok","data":{"Response":{"PornResult":{"Suggestion":"","Confidence":0,"AdvancedInfo":"","Type":"FAIL","Code":-1400,"Msg":"图片解码失败"},"PoliticsResult":{"Suggestion":"PASS","Confidence":29,"FaceResults":[{"FaceRect":{"Height":152,"Width":113,"X":485,"Y":171},"Candidates":[{"Name":"孙家正","Confidence":29}]}],"Code":0,"Msg":"OK","Type":"FACE","AdvancedInfo":""},"TerrorismResult":{"Suggestion":"","Confidence":0,"FaceResults":[],"Code":-1,"Msg":"内部错误","Type":"FACE","AdvancedInfo":""},"DisgustResult":null,"TextResult":null,"Suggestion":"","Extra":"","RequestId":"32683db1-a99c-40ee-bc4e-e2d49e99a857"}},"requestId":"MLyg5sq5LNEHSv5MAQrtMiNZ258gosdD9WFuoVt7cSC4K3FllGBAqrYr-h0ylDucWps"} /** * params 图片的本地路径 * pathToBase64 是将本地路径转化为base64 */ export async function invokeService(params) { params = await pathToBase64(params); console.log('params', params); let invokeRes; try { invokeRes = await wx.serviceMarket.invokeService({ service: 'wxee446d7507c68b11', api: 'imgSecCheck', data: { Action: 'ImageModeration', Scenes: ['PORN', 'POLITICS', 'TERRORISM'], ImageUrl: '', ImageBase64: params, Config: '', Extra: '', }, }); console.log('invokeService success', JSON.stringify(invokeRes)); wx.showModal({ title: 'success', content: JSON.stringify(invokeRes), }); } catch (err) { console.error('invokeService fail', err); wx.showModal({ title: 'fail', content: err, }); } return invokeRes; }
2020-12-07