/// <summary> /// 获取统计数据 /// </summary> private void GetStatistics() { try { WebSiteDataInfo websitedatemodel = null; if (IsRedis == "1") { websitedatemodel = mRedis.GetTotayInvestMoney(); } else { websitedatemodel = new WebSiteDataBLL().GetWebSiteData(); } if (websitedatemodel != null) { this.Amount = websitedatemodel.TotalAmount ?? 0; this.UserCount = websitedatemodel.TotalUser ?? 0; } BabyPlanAmount = GetBabyPlanTotalAmount(); } catch (Exception ex) { NetLog.WriteLoginHandler("首页统计异常", ex.Message + "|" + ex.StackTrace); } }
/// <summary> /// 获取统计数据 /// </summary> private void GetStatistics() { WebSiteDataInfo websitedatemodel = new WebSiteDataBLL().GetWebSiteData(); if (websitedatemodel != null) { this.UserCount = websitedatemodel.TotalUser.ToString(); this.UserName = Tool.CookieHelper.GetCookie("TDWUserName"); TuanDai.PortalSystem.BLL.UserBLL userBll = new TuanDai.PortalSystem.BLL.UserBLL(); userBasicObj = userBll.GetUserBasicInfoModelById(WebUserAuth.UserId.Value); if (this.UserName.IsEmpty()) { if (userBasicObj != null) { this.UserName = userBasicObj.UserName; } } this.returnUrl = Tool.WEBRequest.GetString("ReturnUrl"); if (!string.IsNullOrEmpty(returnUrl) && returnUrl.ToLower().Contains(TuanDai.WXApiWeb.GlobalUtils.ActivityWebsiteUrl.ToLower()))//跳转回ReturnUrl { try { Response.Redirect(returnUrl, false); } catch (Exception ex) { SysLogHelper.WriteErrorLog("注册成功页面跳转异常", Tool.ExceptionHelper.GetExceptionMessage(ex)); } finally { Response.End(); } } } }
/// <summary> /// 获取统计数据 /// </summary> private void GetStatistics() { try { WebSiteDataInfo websitedatemodel = null; if (IsRedis == "1") { websitedatemodel = mRedis.GetTotayInvestMoney(); } else { websitedatemodel = new WebSiteDataBLL().GetWebSiteData(); } if (websitedatemodel != null) { this.Amount = websitedatemodel.TotalAmount ?? 0; this.UserCount = websitedatemodel.TotalUser ?? 0; this.EarnedInterest = websitedatemodel.EarnedInterest ?? 0; } this.TodayAmount = new SubscribeBLL().GetSubscribeTotalAmount(); CalcDQWebSite(); } catch (Exception ex) { NetLog.WriteLoginHandler("统计异常", ex.Message + "|" + ex.StackTrace); } }
protected void LoadData() { try { WebSiteDataInfo websitedatemodel = new WebSiteDataBLL().GetWebSiteData(); if (websitedatemodel != null) { this.UserCount = websitedatemodel.TotalUser ?? 0; } } catch (Exception ex) { UserCount = 2021679; } }