| | |
| | | private Dictionary<string, MailInfo> mailModelDict = new Dictionary<string,MailInfo>();
|
| | | private List<MailInfo> timeOrderMailInfo = new List<MailInfo>();
|
| | | private Regex smatch = new Regex(@"<MailTemplate>([^>.\n]*)</MailTemplate>([^>.\n]*)", RegexOptions.Singleline);
|
| | | private Regex smatchSystem = new Regex(@"[\\]*\/[\\]*", RegexOptions.Singleline);
|
| | |
|
| | | public string mailTitleStr = "";
|
| | | public string mailContentstr = "";
|
| | | public string mailSendPersonStr = "";
|
| | |
| | | public void GetReciveMailContent(MailInfo info)
|
| | | {
|
| | | Debug.Log(info.Text);
|
| | | info.Text = smatchSystem.Replace(info.Text, "/");
|
| | | if (smatch.IsMatch(info.Text))
|
| | | {
|
| | | Match match = smatch.Match(info.Text);
|
| | |
| | |
|
| | | if(mailContentArray.Length > 2)
|
| | | {
|
| | | string mailDes = Regex.Replace(mailContentArray[2], @"<[\\]+/r>", "</r>");
|
| | | string mailDes = mailContentArray[2];
|
| | | mailContentstr = mailDes;
|
| | | }
|
| | | }
|