|
@@ -274,7 +274,7 @@ namespace WeChatCore
|
|
|
}
|
|
|
catch (Exception ex)
|
|
|
{
|
|
|
- HeartList = HttpMethods.Get(HeartUrl, CommonDefine.Cookies, Encoding.UTF8).ContentData.ToString();
|
|
|
+ // HeartList = HttpMethods.Get(HeartUrl, CommonDefine.Cookies, Encoding.UTF8).ContentData.ToString();
|
|
|
}
|
|
|
if (!string.IsNullOrWhiteSpace(HeartList))
|
|
|
{
|
|
@@ -486,7 +486,7 @@ namespace WeChatCore
|
|
|
me.MsgOwer = Mlie;
|
|
|
me.MsgContent = ali.Content;
|
|
|
me.MsgOwerType = MsgOwerTypeEnum.AccepterMsg;
|
|
|
-
|
|
|
+ me.IsCanAutoReply = Mlie.IsCanAutoReply;
|
|
|
//FromMsgList Fml = new FromMsgList(Environment.CurrentDirectory + "\\HeaderImages\\" + CustomName.ToList<Contacts>()[0].FileName + ".jpg", CustomName.ToList<Contacts>()[0].RemarkName, ali.Content);
|
|
|
//Fml.MsgId = Wcmt.MsgId;
|
|
|
//PlayVoice pv = new PlayVoice(Environment.CurrentDirectory + "\\HeaderImages\\" + CustomName.ToList<Contacts>()[0].FileName + ".jpg");
|
|
@@ -702,16 +702,30 @@ namespace WeChatCore
|
|
|
var CommnonReplyData = from item in AutoRelyList where item.AutoRepateType == AutoRepateEnum.CommnonReply select item;
|
|
|
var ThanksReplyData = from item in AutoRelyList where item.AutoRepateType == AutoRepateEnum.ThanksReply select item;
|
|
|
AutoRepateEntity CommnonReplyDataEntity = CommnonReplyData.SingleOrDefault();
|
|
|
- AutoRepateEntity ThanksReplyDataEntity = CommnonReplyData.SingleOrDefault();
|
|
|
+ AutoRepateEntity ThanksReplyDataEntity = ThanksReplyData.SingleOrDefault();
|
|
|
if (MsgContent.MsgContent.ToString() == CommnonReplyDataEntity.AutoReplySwitch)
|
|
|
{
|
|
|
//关闭自动回复
|
|
|
- MsgContent.IsCanAutoReply = false;
|
|
|
+ CommonDefine.ContactsList.MemberList.ForEach(p =>
|
|
|
+ {
|
|
|
+ if (p.UserName == UserName)
|
|
|
+ {
|
|
|
+ p.IsCanAutoReply = false;
|
|
|
+ MsgContent.IsCanAutoReply = false;
|
|
|
+ }
|
|
|
+ });
|
|
|
SendToOtherMsg(ThanksReplyDataEntity.ReplyContent, UserName);
|
|
|
}
|
|
|
if (MsgContent.MsgContent.ToString() == ThanksReplyDataEntity.AutoReplySwitch)
|
|
|
{
|
|
|
- MsgContent.IsCanAutoReply = true;
|
|
|
+ CommonDefine.ContactsList.MemberList.ForEach(p =>
|
|
|
+ {
|
|
|
+ if (p.UserName == UserName)
|
|
|
+ {
|
|
|
+ p.IsCanAutoReply = true;
|
|
|
+ MsgContent.IsCanAutoReply = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
if (MsgContent.IsCanAutoReply)
|
|
|
{
|