服务器配置已经启用并且校验通过了,但是发送消息的时候,后台接收到的消息体不对,这是什么原因呢
错误消息:
{\"body\":\"PHhtbD48VG9Vc2VyTmFtZT48IVtDREFUQVtnaF9hNmNhOGZmNDNiZThdXT48L1RvVXNlck5hbWU+CjxGcm9tVXNlck5hbWU+PCFbQ0RBVEFbb0hINjQ2UTc3b21FcDdxbzVFdEE1S1l1MERrY11dPjwvRnJvbVVzZXJOYW1lPgo8Q3JlYXRlVGltZT4xNjMyOTA1OTM3PC9DcmVhdGVUaW1lPgo8TXNnVHlwZT48IVtDREFUQVt0ZXh0XV0+PC9Nc2dUeXBlPgo8Q29udGVudD48IVtDREFUQVvvvJ9dXT48L0NvbnRlbnQ+CjxNc2dJZD4yMzM3NzU5MTI5Njc1NzgxMzwvTXNnSWQ+CjwveG1sPg==\",\"headers\":{\"accept\":\"*/*\",\"connection\":\"keep-alive\",\"content-length\":\"274\",\"content-type\":\"text/xml\",\"host\":\"tcb-hr1yiz8u7e398b-8dcsh415d6372.service.tcloudbase.com\",\"pragma\":\"no-cache\",\"user-agent\":\"Mozilla/4.0\",\"x-client-proto\":\"https\",\"x-client-proto-ver\":\"HTTP/1.1\",\"x-forwarded-for\":\"81.69.103.236\",\"x-forwarded-proto\":\"https\",\"x-real-ip\":\"81.69.103.236\",\"x-stgw-time\":\"1632905940.781\"},\"httpMethod\":\"POST\",\"isBase64Encoded\":true,\"multiValueHeaders\":{\"accept\":[\"*/*\"],\"connection\":[\"keep-alive\"],\"content-length\":[\"274\"],\"content-type\":[\"text/xml\"],\"host\":[\"tcb-hr1yiz8u7e398b-8dcsh415d6372.service.tcloudbase.com\"],\"pragma\":[\"no-cache\"],\"user-agent\":[\"Mozilla/4.0\"],\"x-client-proto\":[\"https\"],\"x-client-proto-ver\":[\"HTTP/1.1\"],\"x-forwarded-for\":[\"81.69.103.236\"],\"x-forwarded-proto\":[\"https\"],\"x-real-ip\":[\"81.69.103.236\"],\"x-stgw-time\":[\"1632905940.781\"]},\"path\":\"/\",\"queryStringParameters\":{\"nonce\":\"1047512328\",\"openid\":\"oHH646Q77omEp7qo5EtA5KYu0Dkc\",\"signature\":\"9cb584c5c79xxxx3bbae8641257b\",\"timestamp\":\"1632905937\"},\"requestContext\":{\"appId\":\"1304083007\",\"envId\":\"tcb-hr1yiz8u7e398b-8dcsh415d6372\",\"requestId\":\"464e4ea83c0603984259aa84528c8e39\",\"uin\":\"100016312875\"}}"
2021-09-29T16:59:00.821Z
正确消息应该是这样的:
"body": "<xml><ToUserName><![CDATA[ghxxx78ee948]]></ToUserName>\n<FromUserName><![CDATA[oso9xxxxM4Gm3GOApaAo40Q]]></FromUserName>\n<CreateTime>1632906304</CreateTime>\n<MsgType><![CDATA[text]]></MsgType>\n<Content><![CDATA[国旗]]></Content>\n<MsgId>23377597690515475</MsgId>\n</xml>"