예제 #1
0
        /// <summary>
        /// 初始化统计信息
        /// </summary>
        public static void Initialize()
        {
            CNZZStatisticsService service = new CNZZStatisticsService();

            StatisticsAccount account = service.GetAccount();
            if (account == null)
                account = service.CreatNewAccount();
            service.SaveStatisticsAccount(account);
        }
예제 #2
0
        /// <summary>
        /// 初始化统计信息
        /// </summary>
        public static void Initialize()
        {
            CNZZStatisticsService service = new CNZZStatisticsService();

            StatisticsAccount account = service.GetAccount();

            if (account == null)
            {
                account = service.CreatNewAccount();
            }
            service.SaveStatisticsAccount(account);
        }