小程序服务器回调指定密文返回,并指定格式是json,密文解码后是这样的:
{'ToUserName': 'gh_406d9032****', 'FromUserName': 'oiRBY5ba_vhG2mcxs********', 'CreateTime': 1658730632, 'MsgType': 'event', 'Event': 'wxa_media_check', 'isrisky': 0, 'extra_info_json': '', 'appid': 'wxffc**3ff3f1d***', 'trace_id': 'bd8117e7041fd2424bdac93effdb745f', 'status_code': 0, 'detail': []}
参照帮助文档,返回的检测结果理应和xml明文的一致,理应如下:
{
"errcode": 0,
"errmsg": "ok",
"detail": [
{
"strategy": "content_model",
"errcode": 0,
"suggest": "pass",
"label": 100,
"prob": 90
},
{
"strategy": "keyword",
"errcode": 0
}
],
"trace_id": "62de3959-364899af-22dc3e1f",
"result": {
"suggest": "pass",
"label": 100
}
}
你好,因为你这边调用的是内容安全1.0接口,未调用内容安全2.0接口,故返回的与文档不一致哈