Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我两次处理才能得到我想要的东西,消息内容也不知道如何更好的解析出来 #7

Open
qibucloud opened this issue Jun 10, 2018 · 0 comments

Comments

@qibucloud
Copy link

qibucloud commented Jun 10, 2018

var res = _msgService.Process(contentXml, signature, timestamp, nonce, echostr);
            if (res.IsSuccess())
            {
                LogUtil.Info(res.data);
                //var wspnet = res.ConvertToResult<WxBaseRecMsg>();
                //var msgs = res.data.DeserializeXml<WxBaseMsg>();
                var msgs = _msgService.wxProcess(contentXml, signature, timestamp, nonce, echostr);
                LogUtil.Info(msgs.data.RecMsg.MsgId + "|" + msgs.data.RecMsg.CreateTime + "|" + msgs.data.RecMsg.FromUserName + "|" + msgs.data.RecMsg.MsgType + "|" + msgs.data.RecMsg.ToUserName + "|" + msgs.data.RecMsg.RecMsgXml.GetElementsByTagName("Content")[0].InnerXml.ToString().Replace("<![CDATA[", "").Replace("]]>", "") + "|");

                return Content(res.data);
            }
@qibucloud qibucloud changed the title 我两次处理才能得到我想要的东西,消息内容也不知道如何解析出来 我两次处理才能得到我想要的东西,消息内容也不知道如何更好的解析出来 Jun 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant