/// <summary>
        /// 记录页面访问
        /// </summary>
        /// <param name="navOpenId">访问者微信openid</param>
        /// <param name="shareOpenId">当访问来源为朋友圈时的分享者微信openid</param>
        private void NavStatistics(string navOpenId, string shareOpenId)
        {
            //获取访问来源
            NavFrom fromType = GetNavFromType();
            //构造访问记录
            var pageNav = new PageNavEntity()
            {
                Id          = Guid.NewGuid().ToString(),
                Url         = GetOrigenalUrl(),
                NavOpenId   = navOpenId,
                ShareOpenId = shareOpenId,
                From        = fromType,
                VisitTime   = DateTime.Now
            };

            //访问记录写入数据库
            StatisticsBll.InsertPageNav(pageNav);
        }
 /// <summary>
 /// 添加访问记录
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public static void InsertPageNav(PageNavEntity entity)
 {
     entity.VisitTime = DateTime.Now;
     _statistics.PageNav.Add(entity);
 }
 /// <summary>
 /// 记录页面访问
 /// </summary>
 /// <param name="navOpenId">访问者微信openid</param>
 /// <param name="shareOpenId">当访问来源为朋友圈时的分享者微信openid</param>
 private void NavStatistics(string navOpenId, string shareOpenId)
 {
     //获取访问来源
     NavFrom fromType = GetNavFromType();
     //构造访问记录
     var pageNav = new PageNavEntity()
     {
         Id = Guid.NewGuid().ToString(),
         Url = GetOrigenalUrl(),
         NavOpenId = navOpenId,
         ShareOpenId = shareOpenId,
         From = fromType,
         VisitTime = DateTime.Now
     };
     //访问记录写入数据库
     StatisticsBll.InsertPageNav(pageNav);
 }
 /// <summary>
 /// 添加访问记录
 /// </summary>
 /// <param name="entity"></param>
 /// <returns></returns>
 public static void InsertPageNav(PageNavEntity entity)
 {
     entity.VisitTime = DateTime.Now;
     _statistics.PageNav.Add(entity);
 }