基本调通了,但是还是返回格式错误,可否指点下。
{
"code": 1002,
"msg": "校验返回数据格式时发生错误,你返回的数据必须符合文档规定的格式,错误信息:invalid character '«' looking for beginning of value",
"requestId": "9668575759",
"data": "null",
"rid": "7c8261b8"
}
{
"answer_type": "text",
"text_info": {
"short_answer": "answer"
}
}
"""
aes_resp = AESUtil.encrypt(resp)
print("Encrypted:", aes_resp)
body = AESUtil.decrypt(aes_resp)
print("Decrypted:", body)
Encrypted: gz1HcbCGPTWd0pf4pdn1X/Kt40uB8YneFHDLeS0uwOACdKu4/wiJJZRQZBXjx97Z7pNCpBhMvA44wP2F3084II348GUkqaTEhXpJwWypW6y/v1ZAsWiPlyYYwMUkMvaO4jUbKhofDyUSybIq+GO5cKGrdgzstniaS/dyGf6UoKqBO+c5mwzZsKU1s5z4jVdC6unKUs77lEHy5gO4ValLoVvf0wwkNnElegWCk/+LJoHgwWctq0vO8N0UHweGqSjW
Decrypted:
{
"answer_type": "text",
"text_info": {
"short_answer": "answer"
}
}
您好,请您参照文档检查一下您的加密代码,谢谢。
https://developers.weixin.qq.com/doc/aispeech/confapi/thirdapi/thirdapi.html