收藏
回答

根本就调不通,

https://developers.weixin.qq.com/doc/aispeech/confapi/thirdkefu/sendmsg.html


content :=  <xml>
            <appid><![CDATA[xxxxxx]]></appid>
            <openid><![CDATA[xxxxx ]]></appid>
            <msg><![CDATA[xxxxx]]></msg>
            <channel>2</channel>
            <kefuname><![CDATA[Tech.Robot.AI]]></ckefuname>

</xml>


AES......

curl -X POSY -d '{"encrypt": "AP7OW8KwiIsuopAoZzMwj/0i2eJi2ZpcfIkvmWlO+2PEwDQH6w1QDNvs8NNCruvPvV0cpvzYyX8DBvShrre8YwPbk7w3D+NrFfpOKNpldLxaIW4SNDURFmeO2AH84gvRd0+A3L0uPsmNcq2ROFnTkYO78f9wC0T3BbP4cxoKyk4RJlodQBpayVS8IIgCMisSfhTO9OsEN1MmbyMd5Ruv59ZuAFWaMygS3YWOlGIpxNzxXqimsx0fsSLbOzyqvE1mod+W4uTNQ5YRV/yk1ijrhh0k2Yn+0b6+HHSLgXL7+JG50VeFxDxQ/Fd38M8nfW2i"}' https://openai.weixin.qq.com/openapi/sendmsg/xxxx

resp:

{"code":-1,"errcode":-1,"errmsg":"Non-whitespace before first tag.\nLine: 0\nColumn: 1\nChar: [","rid":"df440819"} 





回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员-Jahozheng
    社区技术运营专员-Jahozheng
    2022-12-16

    请检查 encrypt 之前到xml 数据格式是否完整,标签<appid> 和 <xml> 没有闭合

    2022-12-16
    有用
    回复
登录 后发表内容