private string DealWithMsg(ContentMsg contentMsg) { MsgResponse msgResponse = new ContentReplyMsg() { FromUserName = contentMsg.ToUserName, ToUserName = contentMsg.FromUserName, CreateTime2 = DateTime.Now, Content = "感谢给公众号发消息", MsgType = "text" }; return(messageLinkUp.GetResponseText(msgResponse)); }
private string DealWithMsg(SubscribeEvent subscribeEvent) { MsgResponse msgResponse = new ContentReplyMsg() { FromUserName = subscribeEvent.ToUserName, ToUserName = subscribeEvent.FromUserName, CreateTime2 = DateTime.Now, Content = "欢迎关注公众号", MsgType = "text" }; return(messageLinkUp.GetResponseText(msgResponse)); }