Beispiel #1
0
        public static string GetPostXmlToWeiXinGZH(string message)
        {
            string xml = @"<xml>
                    <ToUserName>123456789</ToUserName>
                    <FromUserName>o4xvUviTxj2HbRqbQb9W2nMl4fGg</FromUserName>
                    <CreateTime>" + WeiXinClientUtil.DateTimeToLongString(DateTime.Now) + "</CreateTime>"
                         + "<MsgType>text</MsgType>"
                         + "<Content>" + message + "</Content>"
                         + @"<MsgId>" + DateTime.Now.Ticks + "</MsgId>"
                         + "</xml>";

            return(xml);
        }
Beispiel #2
0
        public static string GetPostXmlToWeiXinGZH(string message)
        {
            string xml = @"<xml>
                    <ToUserName>123456789</ToUserName>
                    <FromUserName>00002</FromUserName>
                    <CreateTime>" + WeiXinClientUtil.DateTimeToLongString(DateTime.Now) + "</CreateTime>"
                         + "<MsgType>text</MsgType>"
                         + "<Content>" + message + "</Content>"
                         + @"<MsgId>1234567890123456</MsgId>
                    </xml>";

            return(xml);
        }