收藏
回答

珊瑚图片内容检测API调用返回错误?

服务端调用API:https://api.weixin.qq.com/wxa/servicemarket?access_token={access_token}

返回错误信息:{ errcode: 9301008,  errmsg: 'invalid api info rid: 5f8565cf-7da7aaf9-7b9c3259' }

有遇到过的吗?

 let requestData = {

                    "service": "wx6a426f5a8a9ac3c0",

                    "api": "imgSecCheck",

                    "client_msg_id" : '12345',

                    "data": {

                        "Action": "ImageModeration",

                        "Scenes": ["PORN", "TERRORISM"],

                        "ImageUrl": "http://img.imkehou.com/wechatapp/sjyteacher/image/1541470466924",

                        "ImageBase64": "",

                        "Config": "",

                        "Extra": ""

                    }

                };

            request({

                url: reqUrl +  access_token.access_token,

                method: "POST",

                json: true,

                headers: {

                    "content-type": "application/json",

                },

                body: requestData

            }, function(error, response, body) {

                if (!error && response.statusCode == 200) {

                    return resolve(body);

                } else {

                    console.log(error);

                    return resolve(error);

                }

            });

最后一次编辑于  2020-10-13
回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容
问题标签