Пример #1
0
        public void Handle(ResetPasswordEvent e)
        {
            SystemLogService service = new SystemLogService();

            service.Insert(new Domain.Models.SystemLog()
            {
                CreateTime = DateTime.Now,
                Ip         = UserContext.Current.Ip,
                Url        = UserContext.Current.Url,
                UserId     = UserContext.Current.UserId,
                UserName   = UserContext.Current.UserName,
                Title      = "重置密码",
                LogType    = Domain.Enums.SystemLogType.ApplyNumber,
                LogCode    = SystemLogCodes.L02020,
                Content    = "重置密码,竞买号 " + e.Account.ApplyNumber,
            });
            var content = AppSettings.GetValue("SMS_ResetPassword", "")
                          .Replace("{applyNumber}", e.Account.ApplyNumber)
                          .Replace("{password}", e.Account.Trade.Land.LandNumber);

            Application.Messager.Send(e.Account.Contact.MobilePhone, content);
        }
Пример #2
0
        public void Handle(VerifyByUserEvent e)
        {
            SystemLogService service = new SystemLogService();

            service.Insert(new Domain.Models.SystemLog()
            {
                CreateTime = DateTime.Now,
                Ip         = UserContext.Current.Ip,
                Url        = UserContext.Current.Url,
                UserId     = UserContext.Current.UserId,
                UserName   = UserContext.Current.UserName,
                Title      = "审核竞买申请",
                LogType    = Domain.Enums.SystemLogType.ApplyNumber,
                LogCode    = SystemLogCodes.L02030,
                Content    = "审核竞买申请,宗地号" + e.Account.Trade.Land.LandNumber + ",竞买号" + e.Account.ApplyNumber,
            });
            var content = AppSettings.GetValue("SMS_VerifyApply", "")
                          .Replace("{landNumber}", e.Account.Trade.Land.LandNumber)
                          .Replace("{verifyStatus}", Tlw.ZPG.Infrastructure.Utils.EnumUtil.GetDescription(e.VerifyType));

            Application.Messager.Send(e.Account.Contact.MobilePhone, content);
        }
        public void Handle(FrozeAccountEvent e)
        {
            SystemLogService service = new SystemLogService();

            service.Insert(new Domain.Models.SystemLog()
            {
                CreateTime = DateTime.Now,
                Ip         = UserContext.Current.Ip,
                Url        = UserContext.Current.Url,
                UserId     = UserContext.Current.UserId,
                UserName   = UserContext.Current.UserName,
                Title      = "冻结竞买号",
                LogType    = Domain.Enums.SystemLogType.ApplyNumber,
                LogCode    = SystemLogCodes.L02000,
                Content    = "宗地号为" + e.Account.Trade.Land.LandNumber + " 的宗地,竞买号" + e.Account.ApplyNumber + "冻结成功!",
            });
            var content = AppSettings.GetValue("SMS_FrozenAccount", "")
                          .Replace("{applyNumber}", e.Account.ApplyNumber)
                          .Replace("{landNumber}", e.Account.Trade.Land.LandNumber);

            Application.Messager.Send(e.Account.Contact.MobilePhone, content);
        }