110,539
社区成员
发帖
与我相关
我的任务
分享
string emailStep1TimeKey1 = Common.GetMd5Hash(account.UserId + email + "SafeEmailStep1");
codeCache.Delete(emailStep1TimeKey1);
DateTime dt1 = DateTime.Now.AddSeconds(350);
bool b = codeCache.Set(emailStep1TimeKey1, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), dt1);
object c = codeCache.Get(emailStep1TimeKey1);
string emailStep1TimeKey2 = Common.GetMd5Hash(account.UserId + email + "SafeEmailStep2");
codeCache.Delete(emailStep1TimeKey2);
DateTime dt2 = DateTime.Now.AddSeconds(339);
bool b1 = codeCache.Set(emailStep1TimeKey2, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), dt2);
object c1 = codeCache.Get(emailStep1TimeKey2);
string emailStep1TimeKey3 = Common.GetMd5Hash(account.UserId + email + "SafeEmailStep3");
codeCache.Delete(emailStep1TimeKey3);
DateTime dt3 = DateTime.Now.AddMinutes(10);
bool b2 = codeCache.Set(emailStep1TimeKey3, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), dt3);
object c2 = codeCache.Get(emailStep1TimeKey3);
string emailStep1TimeKey4 = Common.GetMd5Hash(account.UserId + email + "SafeEmailStep4");
codeCache.Delete(emailStep1TimeKey4);
DateTime dt4 = DateTime.Now.AddMinutes(5);
bool b3 = codeCache.Set(emailStep1TimeKey4, DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), dt4);
object c3 = codeCache.Get(emailStep1TimeKey4);