|
@@ -487,9 +487,6 @@ namespace WeChatCore
|
|
|
me.MsgContent = ali.Content;
|
|
|
me.MsgOwerType = MsgOwerTypeEnum.AccepterMsg;
|
|
|
me.IsCanAutoReply = Mlie.IsCanAutoReply;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
#region 储存消息
|
|
|
|
|
|
if (ali.MsgType == 34)
|
|
@@ -500,8 +497,6 @@ namespace WeChatCore
|
|
|
string FileId = MethodsHelper.MsgSaveFile(DirectoryDefine.VoiceMsgPath);
|
|
|
|
|
|
List<byte> list = HttpMethods.GetFile(Url, Environment.CurrentDirectory + "\\" + DirectoryDefine.VoiceMsgPath + "\\" + FileId + ".mp3", CommonDefine.Cookies).ContentData as List<byte>;
|
|
|
-
|
|
|
-
|
|
|
me.MsgTime = DateTime.Now;
|
|
|
me.FileId = FileId;
|
|
|
me.FilePath = Environment.CurrentDirectory + "\\" + DirectoryDefine.VoiceMsgPath + "\\" + me.FileId + ".mp3";
|
|
@@ -532,9 +527,6 @@ namespace WeChatCore
|
|
|
string FileId = MethodsHelper.MsgSaveFile(DirectoryDefine.ImageMsgGifPath);
|
|
|
HttpMethods.GetFile(Url, Environment.CurrentDirectory + "\\" + DirectoryDefine.ImageMsgGifPath + "\\" + FileId + ".gif", CommonDefine.Cookies);
|
|
|
HttpMethods.GetFile(string.Format(UrlDefine.ImgUrl, ali.MsgId, CommonDefine.LoginResult.skey), Environment.CurrentDirectory + "\\" + DirectoryDefine.ImageMsgTempPath + "\\" + FileId + ".jpg", CommonDefine.Cookies);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
me.MsgTime = DateTime.Now;
|
|
|
me.FileId = FileId;
|
|
|
me.FilePath = Environment.CurrentDirectory + "\\" + DirectoryDefine.ImageMsgGifPath + "\\" + FileId + ".gif";
|
|
@@ -549,9 +541,6 @@ namespace WeChatCore
|
|
|
HttpMethods.GetFile(string.Format(UrlDefine.ImgUrl, ali.MsgId, CommonDefine.LoginResult.skey), Environment.CurrentDirectory + "\\" + DirectoryDefine.ImageMsgTempPath + "\\" + FileId + ".jpg", CommonDefine.Cookies);
|
|
|
|
|
|
List<byte> list = HttpMethods.GetVideo(Url, Environment.CurrentDirectory + "\\" + DirectoryDefine.VideoMsgPath + "\\" + FileId + ".mp4", CommonDefine.Cookies);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
me.MsgTime = DateTime.Now;
|
|
|
me.FileId = FileId;
|
|
|
me.FilePath = Environment.CurrentDirectory + "\\" + DirectoryDefine.VideoMsgPath + "\\" + FileId + ".mp4";
|
|
@@ -570,9 +559,6 @@ namespace WeChatCore
|
|
|
HttpMethods.GetFile(Url, Environment.CurrentDirectory + "\\" + DirectoryDefine.MapImageMsgPath + "\\" + FileId + ".jpg", CommonDefine.Cookies);
|
|
|
me.FilePath = Environment.CurrentDirectory + "\\" + DirectoryDefine.MapImageMsgPath + "\\" + FileId + ".jpg";
|
|
|
me.MsgTime = DateTime.Now;
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
else
|
|
|
{
|
|
@@ -676,7 +662,7 @@ namespace WeChatCore
|
|
|
|
|
|
|
|
|
|
|
|
- public static void SetAutoRepate(List<MemberListItemEntity> UserList, List<AutoRepateEntity> AutoRelyList, string UserName, MsgEntity MsgContent)
|
|
|
+ internal static void SetAutoRepate(List<MemberListItemEntity> UserList, List<AutoRepateEntity> AutoRelyList, string UserName, MsgEntity MsgContent)
|
|
|
{
|
|
|
if (UserList == null) UserList = new List<MemberListItemEntity>();
|
|
|
if (AutoRelyList.Count == 0)
|