Wechat chat messages, xml data samples when sending red packets, and the meaning of each field

Keywords: xml

If the wechat chat message sends a red packet, then the content is a piece of xml data, which defines various data of the red packet. Extract a sample and record it below, so that you don't need to recapture the data every time.

<msg>
    <appmsg appid="" sdkver="">
        <des>
            <![CDATA[I've sent you a red envelope. Go and open it!]]>
        </des>
        <url>
            <![CDATA[https://wxapp.tenpay.com/mmpayhb/wxhb_personalreceive?showwxpaytitle=1&msgtype=1&channelid=1&sendid=1000039401201809126014899165139&ver=6&sign=61bc987ebbaa347d5361ce37748c720292b3df2019294c585ec374195aad3b1b8db6808520cd733b01421901541b684252ebe2977511d44d8d09ab035b2bb0c14bd6ba1c84b1cc8353534cb01f8a5b2f]]>
        </url>
        <type>
            <![CDATA[2001]]>
        </type>
        <title>
            <![CDATA[WeChat red envelope]]>
        </title>
        <thumburl>
            <![CDATA[https://wx.gtimg.com/hongbao/1800/hb.png]]>
        </thumburl>
        <wcpayinfo>
            <templateid>
                <![CDATA[7a2a165d31da7fce6dd77e05c300028a]]>
            </templateid>
            <url>
                <![CDATA[https://wxapp.tenpay.com/mmpayhb/wxhb_personalreceive?showwxpaytitle=1&msgtype=1&channelid=1&sendid=1000039401201809126014899165139&ver=6&sign=61bc987ebbaa347d5361ce37748c720292b3df2019294c585ec374195aad3b1b8db6808520cd733b01421901541b684252ebe2977511d44d8d09ab035b2bb0c14bd6ba1c84b1cc8353534cb01f8a5b2f]]>
            </url>
            <iconurl>
                <![CDATA[https://wx.gtimg.com/hongbao/1800/hb.png]]>
            </iconurl>
            <receivertitle>
                <![CDATA[Good, good.]]>
            </receivertitle>
            <sendertitle>
                <![CDATA[Good, good.]]>
            </sendertitle>
            <scenetext>
                <![CDATA[WeChat red envelope]]>
            </scenetext>
            <senderdes>
                <![CDATA[Check the red envelope]]>
            </senderdes>
            <receiverdes>
                <![CDATA[Receive a red envelope]]>
            </receiverdes>
            <nativeurl>
                <![CDATA[wxpay://c2cbizmessagehandler/hongbao/receivehongbao?msgtype=1&channelid=1&sendid=1000039401201809126014899165139&sendusername=wxid_qclsaxd649t422&ver=6&sign=61bc987ebbaa347d5361ce37748c720292b3df2019294c585ec374195aad3b1b8db6808520cd733b01421901541b684252ebe2977511d44d8d09ab035b2bb0c14bd6ba1c84b1cc8353534cb01f8a5b2f]]>
            </nativeurl>
            <sceneid>
                <![CDATA[1002]]>
            </sceneid>
            <innertype>
                <![CDATA[0]]>
            </innertype>
            <paymsgid>
                <![CDATA[1000039401201809126014899165139]]>
            </paymsgid>
            <scenetext>WeChat red envelope</scenetext>
            <locallogoicon>
                <![CDATA[c2c_hongbao_icon_cn]]>
            </locallogoicon>
            <invalidtime>
                <![CDATA[1536821644]]>
            </invalidtime>
        </wcpayinfo>
    </appmsg>
    <fromusername>
        <![CDATA[wxid_qclsaxd649t422]]>
    </fromusername>
</msg>

The meaning of many fields is clear at a glance, and there is no need to explain. Send a red envelope and test it.

The red packet needs to be removed before the specific amount and the amount of each person's claim are known.

fromusername Sender's wechat ID
   
   
   
   
   
   
   
   
   

 

Posted by phpMover on Mon, 06 Jan 2020 03:04:30 -0800