1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace SCC.Common
- {
- public static class CheckDataHelper
- {
- private IEmail email = null;
- static CheckDataHelper()
- {
- email = IOC.Resolve<IEmail>();
- }
-
-
-
-
-
-
- private static void CheckData(Dictionary<string, string> dbData, Dictionary<string, string> newData)
- {
- try
- {
- foreach (var item in dbData)
- {
- var data = newData.SingleOrDefault(w => w.Key == item.Key);
- if (data.Key != null)
- {
- if (data.Value != item.Value)
- {
- email.AddEmail(Config.Area + Config.LotteryName, data.Key, DateTime.Now, "数据验证失败");
- }
- }
- }
- }
- catch (Exception ex)
- {
-
-
- }
- }
- }
- }
|