public bool Init()
 {
     try
     {
         string fileName = "Config/JieRiGifts/JieRiChongZhiQiangGou.xml";
         GeneralCachingXmlMgr.RemoveCachingXml(Global.GameResPath(fileName));
         XElement xml = GeneralCachingXmlMgr.GetXElement(Global.GameResPath(fileName));
         if (null == xml)
         {
             return(false);
         }
         XElement args = xml.Element("Activities");
         if (null != args)
         {
             this.FromDate       = Global.GetSafeAttributeStr(args, "FromDate");
             this.ToDate         = Global.GetSafeAttributeStr(args, "ToDate");
             this.ActivityType   = (int)Global.GetSafeAttributeLong(args, "ActivityType");
             this.AwardStartDate = Global.GetSafeAttributeStr(args, "AwardStartDate");
             this.AwardEndDate   = Global.GetSafeAttributeStr(args, "AwardEndDate");
         }
         args = xml.Element("GiftList");
         if (null != args)
         {
             IEnumerable <XElement> xmlItems = args.Elements();
             foreach (XElement xmlItem in xmlItems)
             {
                 JieriCZQGConfigData item = new JieriCZQGConfigData();
                 item.ID             = (int)Global.GetSafeAttributeLong(xmlItem, "ID");
                 item.ZhiGouID       = (int)Global.GetSafeAttributeLong(xmlItem, "ZhiGouID");
                 item.SinglePurchase = (int)Global.GetSafeAttributeLong(xmlItem, "SinglePurchase");
                 string GoodsOne = Global.GetSafeAttributeStr(xmlItem, "GoodsOne");
                 string GoodsTwo = Global.GetSafeAttributeStr(xmlItem, "GoodsTwo");
                 UserMoneyMgr.getInstance().CheckChargeItemConfigLogic(item.ZhiGouID, item.SinglePurchase, GoodsOne, GoodsTwo, string.Format("充值抢购 ID={0}", item.ID));
                 string   DayString = Global.GetSafeAttributeStr(xmlItem, "Day");
                 string[] DayFiled  = DayString.Split(new char[]
                 {
                     ','
                 });
                 if (DayFiled.Length == 2)
                 {
                     int      SpanFromDay = Global.SafeConvertToInt32(DayFiled[0]) - 1;
                     int      SpanToDay   = Global.SafeConvertToInt32(DayFiled[1]);
                     DateTime startTime   = DateTime.Parse(this.FromDate);
                     item.FromDate = Global.GetAddDaysDataTime(startTime, SpanFromDay, true);
                     item.ToDate   = Global.GetAddDaysDataTime(startTime, SpanToDay, true);
                 }
                 this.CZQGConfigDict[item.ID] = item;
                 this.CZQGZhiGouIDSet.Add(item.ZhiGouID);
             }
         }
         base.PredealDateTime();
         GlobalEventSource.getInstance().registerListener(36, this);
     }
     catch (Exception ex)
     {
         LogManager.WriteLog(LogTypes.Fatal, string.Format("{0}解析出现异常, {1}", "Config/JieRiGifts/JieRiChongZhiQiangGou.xml", ex.Message), null, true);
         return(false);
     }
     return(true);
 }
Esempio n. 2
0
        public Dictionary <int, int> BuildThemeZhiGouInfoForClient(GameClient client)
        {
            DateTime now = TimeUtil.NowDateTime();
            Dictionary <int, int> ZhiGouInfoDict = new Dictionary <int, int>();

            foreach (ThemeZhiGouConfig item in this.ThemeZhiGouConfigData.Values)
            {
                if (!(now < item.FromDate) && !(now > item.ToDate))
                {
                    ZhiGouInfoDict[item.ID] = UserMoneyMgr.getInstance().GetChargeItemPurchaseNum(client, item.ZhiGouID);
                }
            }
            return(ZhiGouInfoDict);
        }
        public bool CheckClientCanBuy(GameClient client)
        {
            bool result;

            if (0 == this.PlatformOpenStateVavle)
            {
                result = false;
            }
            else
            {
                int PurNum = UserMoneyMgr.getInstance().GetChargeItemPurchaseNum(client, this.OneDollarBuyConfigData.ZhiGouID);
                result = (PurNum < this.OneDollarBuyConfigData.SinglePurchase);
            }
            return(result);
        }
Esempio n. 4
0
 public bool Init()
 {
     try
     {
         GeneralCachingXmlMgr.RemoveCachingXml(Global.GameResPath("Config/ThemeActivityZhiGou.xml"));
         XElement xml = GeneralCachingXmlMgr.GetXElement(Global.GameResPath("Config/ThemeActivityZhiGou.xml"));
         if (null == xml)
         {
             return(false);
         }
         this.ActivityType   = 150;
         this.FromDate       = "-1";
         this.ToDate         = "-1";
         this.AwardStartDate = "-1";
         this.AwardEndDate   = "-1";
         IEnumerable <XElement> xmlItems = xml.Elements();
         foreach (XElement xmlItem in xmlItems)
         {
             if (null != xmlItem)
             {
                 ThemeZhiGouConfig config = new ThemeZhiGouConfig();
                 config.ID             = (int)Global.GetSafeAttributeLong(xmlItem, "ID");
                 config.ZhiGouID       = (int)Global.GetSafeAttributeLong(xmlItem, "ZhiGouID");
                 config.SinglePurchase = (int)Global.GetSafeAttributeLong(xmlItem, "SinglePurchase");
                 int[] dayFromEnd = Global.GetSafeAttributeIntArray(xmlItem, "Day", -1, ',');
                 if (dayFromEnd.Length == 2)
                 {
                     config.FromDate = Global.GetKaiFuTime().AddDays((double)(dayFromEnd[0] - 1));
                     config.ToDate   = Global.GetKaiFuTime().AddDays((double)dayFromEnd[1]);
                 }
                 string GoodsOne = Global.GetSafeAttributeStr(xmlItem, "GoodsOne");
                 string GoodsTwo = Global.GetSafeAttributeStr(xmlItem, "GoodsTwo");
                 this.ThemeZhiGouConfigData[config.ID] = config;
                 UserMoneyMgr.getInstance().CheckChargeItemConfigLogic(config.ZhiGouID, config.SinglePurchase, GoodsOne, GoodsTwo, string.Format("主题服直购 ID={0}", config.ID));
             }
         }
         base.PredealDateTime();
         GlobalEventSource.getInstance().registerListener(36, this);
     }
     catch (Exception ex)
     {
         LogManager.WriteLog(LogTypes.Fatal, string.Format("{0}解析出现异常, {1}", "Config/OneDollarBuy.xml", ex.Message), null, true);
         return(false);
     }
     return(true);
 }
Esempio n. 5
0
        public bool CheckClientCanBuy(GameClient client)
        {
            DateTime now = TimeUtil.NowDateTime();

            foreach (ThemeZhiGouConfig item in this.ThemeZhiGouConfigData.Values)
            {
                if (!(now < item.FromDate) && !(now > item.ToDate))
                {
                    int PurNum = UserMoneyMgr.getInstance().GetChargeItemPurchaseNum(client, item.ZhiGouID);
                    if (item.SinglePurchase <= 0 || PurNum < item.SinglePurchase)
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }
Esempio n. 6
0
        public static void ReloadAllXmlFile()
        {
            WorldLevelManager.getInstance().InitConfig();
            WorldLevelManager.getInstance().ResetWorldLevel();
            ReloadXmlManager.ReloadXmlFile_config_platconfig();
            ReloadXmlManager.ReloadXmlFile_config_gifts_activities();
            ReloadXmlManager.ReloadXmlFile_config_gifts_biggift();
            ReloadXmlManager.ReloadXmlFile_config_gifts_loginnumgift();
            ReloadXmlManager.ReloadXmlFile_config_gifts_huodongloginnumgift();
            ReloadXmlManager.ReloadXmlFile_config_gifts_newrolegift();
            ReloadXmlManager.ReloadXmlFile_config_combat_effectiveness_gift();
            ReloadXmlManager.ReloadXmlFile_config_gifts_uplevelgift();
            ReloadXmlManager.ReloadXmlFile_config_gifts_onlietimegift();
            ReloadXmlManager.ReloadXmlFile_config_mall();
            ReloadXmlManager.ReloadXmlFile_config_monstergoodslist();
            ReloadXmlManager.ReloadXmlFile_config_broadcastinfos();
            ReloadXmlManager.ReloadXmlFile_config_specialtimes();
            ReloadXmlManager.ReloadXmlFile_config_battle();
            ReloadXmlManager.ReloadXmlFile_config_ArenaBattle();
            ReloadXmlManager.ReloadXmlFile_config_popupwin();
            ReloadXmlManager.ReloadXmlFile_config_npcscripts();
            ReloadXmlManager.ReloadXmlFile_config_systemoperations();
            ReloadXmlManager.ReloadXmlFile_config_systemparams();
            ReloadXmlManager.ReloadXmlFile_config_goodsmergeitems();
            ReloadXmlManager.ReloadXmlFile_config_qizhengegoods();
            ReloadXmlManager.ReloadXmlFile_config_npcsalelist();
            ReloadXmlManager.ReloadXmlFile_config_goods();
            ReloadXmlManager.ReloadXmlFile_config_goodspack();
            ReloadXmlManager.ReloadXmlFile_config_systemtasks();
            ReloadXmlManager.ReloadXmlFile_config_equipupgrade();
            ReloadXmlManager.ReloadXmlFile_config_dig();
            ReloadXmlManager.ReloadXmlFile_config_battleexp();
            ReloadXmlManager.ReloadXmlFile_config_bangzhanawards();
            ReloadXmlManager.ReloadXmlFile_config_rebirth();
            ReloadXmlManager.ReloadXmlFile_config_Award();
            ReloadXmlManager.ReloadXmlFile_config_EquipBorn();
            ReloadXmlManager.ReloadXmlFile_config_BornName();
            ReloadXmlManager.ReloadXmlFile_config_gifts_FanLi();
            ReloadXmlManager.ReloadXmlFile_config_gifts_ChongZhiSong();
            ReloadXmlManager.ReloadXmlFile_config_gifts_ChongZhiKing();
            ReloadXmlManager.ReloadXmlFile_config_gifts_LevelKing();
            ReloadXmlManager.ReloadXmlFile_config_gifts_EquipKing();
            ReloadXmlManager.ReloadXmlFile_config_gifts_HorseKing();
            ReloadXmlManager.ReloadXmlFile_config_gifts_JingMaiKing();
            ReloadXmlManager.ReloadXmlFile_config_gifts_VipDailyAwards();
            ReloadXmlManager.ReloadXmlFile_config_ActivityTip();
            ReloadXmlManager.ReloadXmlFile_config_LuckyAward();
            ReloadXmlManager.ReloadXmlFile_config_Lucky();
            ReloadXmlManager.ReloadXmlFile_config_ChengJiu();
            ReloadXmlManager.ReloadXmlFile_config_ChengJiuBuff();
            ReloadXmlManager.ReloadXmlFile_config_JingMai();
            ReloadXmlManager.ReloadXmlFile_config_WuXue();
            ReloadXmlManager.ReloadXmlFile_config_ZuanHuang();
            ReloadXmlManager.ReloadXmlFile_config_Vip();
            ReloadXmlManager.ReloadXmlFile_config_QiangGou();
            ReloadXmlManager.ReloadXmlFile_config_HeFuQiangGou();
            ReloadXmlManager.ReloadXmlFile_config_JieRiQiangGou();
            ReloadXmlManager.ReloadXmlFile_config_SystemOpen();
            ReloadXmlManager.ReloadXmlFile_config_DailyActive();
            ReloadXmlManager.ReloadXmlFile_config_DailyActiveAward();
            ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiType();
            ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiLiBao();
            ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiDengLu();
            ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiVip();
            ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiChongZhiSong();
            ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiLeiJi();
            ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiBaoXiang();
            ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiXiaoFeiKing();
            ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiChongZhiKing();
            ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiTotalConsume();
            ReloadXmlManager.ReloadXmlFile_config_gifts_JieRiMultAward();
            ReloadXmlManager.ReloadXmlFile_config_bossAI();
            ReloadXmlManager.ReloadXmlFile_config_TuoZhan();
            ReloadXmlManager.ReloadXmlFile_config_MoJingAndQiFu();
            ReloadXmlManager.ReloadXmlFile_config_TotalLoginDataInfo();
            GameManager.SystemMagicsMgr.ReloadLoadFromXMlFile();
            GameManager.SystemMagicQuickMgr.LoadMagicItemsDict(GameManager.SystemMagicsMgr);
            HuodongCachingMgr.ResetXinXiaoFeiKingActivity();
            HuodongCachingMgr.ResetHeFuActivityConfig();
            HuodongCachingMgr.ResetHeFuLoginActivity();
            HuodongCachingMgr.ResetHeFuTotalLoginActivity();
            HuodongCachingMgr.ResetHeFuRechargeActivity();
            HuodongCachingMgr.ResetHeFuPKKingActivity();
            HuodongCachingMgr.ResetHeFuAwardTimeActivity();
            HuodongCachingMgr.ResetHeFuLuoLanActivity();
            HuodongCachingMgr.ResetThemeActivityConfig();
            HuodongCachingMgr.ResetThemeDaLiBaoActivity();
            HuodongCachingMgr.ResetThemeDuiHuanActivity();
            HuodongCachingMgr.ResetThemeZhiGouActivity();
            HuodongCachingMgr.ResetJieriActivityConfig();
            HuodongCachingMgr.ResetJieriDaLiBaoActivity();
            HuodongCachingMgr.ResetJieRiDengLuActivity();
            HuodongCachingMgr.ResetJieriCZSongActivity();
            HuodongCachingMgr.ResetJieRiLeiJiCZActivity();
            HuodongCachingMgr.ResetJieRiTotalConsumeActivity();
            HuodongCachingMgr.ResetJieRiMultAwardActivity();
            HuodongCachingMgr.ResetJieRiZiKaLiaBaoActivity();
            HuodongCachingMgr.ResetJieRiXiaoFeiKingActivity();
            HuodongCachingMgr.ResetJieRiCZKingActivity();
            HuodongCachingMgr.ResetJieriGiveActivity();
            HuodongCachingMgr.ResetJieRiGiveKingActivity();
            HuodongCachingMgr.ResetJieriRecvKingActivity();
            HuodongCachingMgr.ResetJieRiFanLiAwardActivity();
            HuodongCachingMgr.ResetJieriLianXuChargeActivity();
            HuodongCachingMgr.ResetJieriRecvActivity();
            HuodongCachingMgr.ResetJieriPlatChargeKingActivity();
            HuodongCachingMgr.ResetFirstChongZhiGift();
            HuodongCachingMgr.ResetDanBiChongZhiActivity();
            HuodongCachingMgr.ResetTotalChargeActivity();
            HuodongCachingMgr.ResetTotalConsumeActivity();
            HuodongCachingMgr.ResetSeriesLoginItem();
            HuodongCachingMgr.ResetEveryDayOnLineAwardItem();
            HuodongCachingMgr.ResetJieriIPointsExchangeActivity();
            HuodongCachingMgr.ResetJieriFuLiActivity();
            HuodongCachingMgr.ResetJieriVIPYouHuiAct();
            HuodongCachingMgr.ResetJieRiMeiRiLeiJiActivity();
            HuodongCachingMgr.ResetJieriPCKingActivityEveryDay();
            OlympicsManager.getInstance().InitOlympics();
            UserReturnManager.getInstance().initConfigInfo();
            HuodongCachingMgr.ResetSpecPriorityActivity();
            HuodongCachingMgr.ResetXinFanLiActivity();
            HuodongCachingMgr.ResetWeedEndInputActivity();
            HuodongCachingMgr.ResetSpecialActivity();
            HuodongCachingMgr.ResetJieRiCZQGActivity();
            HuodongCachingMgr.ResetOneDollarBuyActivity();
            HuodongCachingMgr.ResetJieRiSuperInputFanLiActivity();
            HuodongCachingMgr.ResetOneDollarChongZhiActivity();
            HuodongCachingMgr.ResetEverydayActivity();
            HuodongCachingMgr.ResetInputFanLiNewActivity();
            HuodongCachingMgr.ResetRegressActiveOpen();
            HuodongCachingMgr.ResetRegressActiveTotalRecharge();
            HuodongCachingMgr.ResetRegressActiveStore();
            HuodongCachingMgr.ResetRegressActiveDayBuy();
            HuodongCachingMgr.ResetRegressActiveSignGift();
            WebOldPlayerManager.ReloadXml();
            TenManager.initConfig();
            Global.CachingJieriXmlData           = null;
            Global.CachingSpecActXmlData         = null;
            Global.CachingEverydayActXmlData     = null;
            Global.CachingThemeActXmlData        = null;
            Global.CachingSpecPriorityActXmlData = null;
            TodayManager.InitConfig();
            BuChangManager.ResetBuChangItemDict();
            HuodongCachingMgr.ResetMeiRiChongZhiActivity();
            HuodongCachingMgr.ResetChongJiHaoLiActivity();
            HuodongCachingMgr.ResetShenZhuangJiQiHuiKuiHaoLiActivity();
            HuodongCachingMgr.ResetYueDuZhuanPanActivity();
            GongGaoDataManager.LoadGongGaoData();
            SaleManager.InitConfig();
            GameManager.systemImpetrateByLevelMgr.ReloadLoadFromXMlFile();
            QianKunManager.LoadImpetrateItemsInfo();
            QianKunManager.LoadImpetrateItemsInfoFree();
            QianKunManager.LoadImpetrateItemsInfoHuodong();
            QianKunManager.LoadImpetrateItemsInfoFreeHuoDong();
            QianKunManager.LoadImpetrateItemsInfoTeQuan();
            QianKunManager.LoadImpetrateItemsInfoFreeTeQuan();
            GameManager.systemXingYunChouJiangMgr.ReloadLoadFromXMlFile();
            GameManager.systemYueDuZhuanPanChouJiangMgr.ReloadLoadFromXMlFile();
            Global.LoadSpecialMachineConfig();
            ElementhrtsManager.LoadRefineType();
            ElementhrtsManager.LoadElementHrtsBase();
            ElementhrtsManager.LoadElementHrtsLevelInfo();
            ElementhrtsManager.LoadSpecialElementHrtsExp();
            GameManager.QingGongYanMgr.LoadQingGongYanConfig();
            CopyTargetManager.LoadConfig();
            CallPetManager.LoadCallPetType();
            CallPetManager.LoadCallPetConfig();
            CallPetManager.LoadCallPetSystem();
            ShenShiManager.getInstance().ReloadConfig();
            Global.LoadGuWuMaps();
            Global.LoadAutoReviveMaps();
            GameManager.MonsterZoneMgr.LoadAllMonsterXml();
            GameManager.VersionSystemOpenMgr.LoadVersionSystemOpenData();
            UserMoneyMgr.getInstance().InitConfig();
            RobotTaskValidator.getInstance().LoadRobotTaskData();
            GameManager.MerlinMagicBookMgr.LoadMerlinConfigData();
            GameManager.FluorescentGemMgr.LoadFluorescentGemConfigData();
            SingletonTemplate <GetInterestingDataMgr> .Instance().LoadConfig();

            SingletonTemplate <CreateRoleLimitManager> .Instance().LoadConfig();

            TianTiManager.getInstance().InitConfig(true);
            TianTi5v5Manager.getInstance().InitConfig(true);
            YongZheZhanChangManager.getInstance().InitConfig();
            KingOfBattleManager.getInstance().InitConfig();
            BangHuiMatchManager.getInstance().InitConfig();
            ZorkBattleManager.getInstance().InitConfig();
            KarenBattleManager.getInstance().InitConfig();
            KarenBattleManager_MapWest.getInstance().InitConfig();
            KarenBattleManager_MapEast.getInstance().InitConfig();
            KuaFuBossManager.getInstance().InitConfig();
            KuaFuMapManager.getInstance().InitConfig();
            FashionManager.getInstance().InitConfig();
            OrnamentManager.getInstance().InitConfig();
            ShenJiFuWenManager.getInstance().InitConfig();
            YaoSaiJianYuManager.getInstance().InitConfig();
            AlchemyManager.getInstance().InitConfig();
            ZuoQiManager.getInstance().ReLoadConfig(false);
            RebornManager.getInstance().InitConfig(true);
            RebornBoss.getInstance().InitConfig();
            SpecPlatFuLiManager.getInstance().InitConfig();
            EraManager.getInstance().InitConfig();
            JingLingQiYuanManager.getInstance().InitConfig();
            AllThingsCalcItem.InitAllForgeLevelInfo();
            SingletonTemplate <TradeBlackManager> .Instance().LoadConfig();

            Global.LoadLangDict();
            LogFilterConfig.InitConfig();
            TenRetutnManager.getInstance().InitConfig();
            VideoLogic.getInstance().LoadVideoXml();
            Data.LoadConfig();
            GiftCodeNewManager.getInstance().initGiftCode();
            AoYunDaTiManager.getInstance().LoadConfig();
            ZhuanPanManager.getInstance().LoadConfig();
            JueXingManager.getInstance().LoadConfig();
            TalentManager.LoadTalentSpecialData();
            AssemblyPatchManager.getInstance().initialize();
            IPStatisticsManager.getInstance().LoadConfig();
            JunTuanManager.getInstance().InitConfig();
            HongBaoManager.getInstance().InitConfig();
            HuiJiManager.getInstance().InitConfig();
            DeControl.getInstance().InitConfig();
            GVoiceManager.getInstance().InitConfig();
            KuaFuLueDuoManager.getInstance().InitConfig();
            WanMoXiaGuManager.getInstance().InitConfig();
            ThemeBoss.getInstance().InitConfig();
            ArmorManager.getInstance().InitConfig();
            CompBattleManager.getInstance().InitConfig();
            CompMineManager.getInstance().InitConfig();
            JingLingYuanSuJueXingManager.getInstance().LoadConfig();
            BianShenManager.getInstance().InitConfig();
            ZhanDuiZhengBaManager.getInstance().InitConfig();
            EscapeBattleManager.getInstance().InitConfig();
            MazingerStoreManager.getInstance().InitConfig();
            BuffManager.InitConfig();
            GoldAuctionConfigModel.LoadConfig();
            BoCaiConfigMgr.LoadConfig(true);
        }
Esempio n. 7
0
        public static int ReloadXmlFile(string xmlFileName)
        {
            string lowerXmlFileName = xmlFileName.ToLower();
            int    result;

            if (Global.GetGiftExchangeFileName().ToLower() == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_activities();
            }
            else if ("config/gifts/biggift.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_biggift();
            }
            else if ("config/gifts/loginnumgift.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_loginnumgift();
            }
            else if ("config/gifts/huodongloginnumgift.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_huodongloginnumgift();
            }
            else if ("config/gifts/newrolegift.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_newrolegift();
            }
            else if ("config/gifts/comateffectivenessgift.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_combat_effectiveness_gift();
            }
            else if ("config/gifts/uplevelgift.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_uplevelgift();
            }
            else if ("config/gifts/onlietimegift.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_onlietimegift();
            }
            else if ("config/platconfig.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_platconfig();
            }
            else if ("config/mall.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_mall();
            }
            else if ("config/monstergoodslist.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_monstergoodslist();
            }
            else if ("config/broadcastinfos.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_broadcastinfos();
            }
            else if ("config/specialtimes.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_specialtimes();
            }
            else if ("config/battle.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_battle();
            }
            else if ("config/arenabattle.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_ArenaBattle();
            }
            else if ("config/popupwin.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_popupwin();
            }
            else if ("config/npcscripts.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_npcscripts();
            }
            else if ("config/systemoperations.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_systemoperations();
            }
            else if ("config/systemparams.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_systemparams();
            }
            else if ("config/goodsmergeitems.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_goodsmergeitems();
            }
            else if ("config/qizhengegoods.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_qizhengegoods();
            }
            else if ("config/npcsalelist.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_npcsalelist();
            }
            else if ("config/goods.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_goods();
            }
            else if ("config/goodspack.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_goodspack();
            }
            else if ("config/systemtasks.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_systemtasks();
            }
            else if ("config/taskzhangjie.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_taskzhangjie();
            }
            else if ("config/equipupgrade.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_equipupgrade();
            }
            else if ("config/dig.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_dig();
            }
            else if ("config/battleexp.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_battleexp();
            }
            else if ("config/rebirth.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_rebirth();
            }
            else if ("config/battleaward.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_Award();
            }
            else if ("config/equipborn.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_EquipBorn();
            }
            else if ("config/bornname.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_BornName();
            }
            else if ("config/gifts/fanli.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_FanLi();
            }
            else if ("config/gifts/chongzhisong.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_ChongZhiSong();
            }
            else if ("config/gifts/chongzhiking.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_ChongZhiKing();
            }
            else if ("config/gifts/levelking.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_LevelKing();
            }
            else if ("config/gifts/bossking.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_EquipKing();
            }
            else if ("config/gifts/wuxueking.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_HorseKing();
            }
            else if ("config/gifts/jingmaiking.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_JingMaiKing();
            }
            else if ("config/gifts/vipdailyawards.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_gifts_VipDailyAwards();
            }
            else if ("config/activity/activitytip.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_ActivityTip();
            }
            else if ("config/luckyaward.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_LuckyAward();
            }
            else if ("config/lucky.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_Lucky();
            }
            else if ("config/chengjiu.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_ChengJiu();
            }
            else if ("config/chengjiubuff.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_ChengJiuBuff();
            }
            else if (string.Format("Config\\JieRiGifts\\ JieRiDanBiChongZhi.xml", new object[0]).ToLower() == lowerXmlFileName)
            {
                result = HuodongCachingMgr.ResetDanBiChongZhiActivity();
            }
            else if ("config/jingmai.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_JingMai();
            }
            else if ("config/wuxue.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_WuXue();
            }
            else if ("config/zuanhuang.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_ZuanHuang();
            }
            else if ("config/vip.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_Vip();
            }
            else if ("config/qianggou.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_QiangGou();
            }
            else if ("config/hefugifts/hefuqianggou.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_HeFuQiangGou();
            }
            else if ("config/jierigifts/jirriqianggou.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_JieRiQiangGou();
            }
            else if ("config/systemopen.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_SystemOpen();
            }
            else if ("config/DailyActiveInfor.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_DailyActive();
            }
            else if ("DailyActiveAward.xml" == lowerXmlFileName)
            {
                result = ReloadXmlManager.ReloadXmlFile_config_DailyActiveAward();
            }
            else if ("config/ipwhitelist.xml" == lowerXmlFileName)
            {
                SingletonTemplate <CreateRoleLimitManager> .Instance().LoadConfig();

                result = 1;
            }
            else
            {
                if ("kuafu" == lowerXmlFileName)
                {
                    if (KuaFuManager.getInstance().InitConfig())
                    {
                        return(1);
                    }
                }
                else if ("langhunlingyu" == lowerXmlFileName)
                {
                    if (LangHunLingYuManager.getInstance().InitConfig())
                    {
                        return(1);
                    }
                }
                else if ("config/chongzhi_app.xml" == lowerXmlFileName || "config/chongzhi_andrid.xml" == lowerXmlFileName || "config/chongzhi_android.xml" == lowerXmlFileName || "config/chongzhi_yueyu.xml" == lowerXmlFileName)
                {
                    UserMoneyMgr.getInstance().InitConfig();
                }
                else
                {
                    if ("config/AssInfo.xml" == lowerXmlFileName || "config/AssList.xml" == lowerXmlFileName || "config/AssConfig.xml" == lowerXmlFileName)
                    {
                        return(RobotTaskValidator.getInstance().LoadRobotTaskData() ? 1 : 0);
                    }
                    if ("Config/Auction.xml" == lowerXmlFileName || "Config/AngelTempleAuctionAward.xml" == lowerXmlFileName)
                    {
                        return(GoldAuctionConfigModel.LoadConfig());
                    }
                    if ("Config/CaiShuZi.xml" == lowerXmlFileName || "Config/CaiDaXiao.xml" == lowerXmlFileName || "Config/DuiHuanShangCheng.xml" == lowerXmlFileName || "Config/DaiBiShiYong.xml" == lowerXmlFileName)
                    {
                        return(BoCaiConfigMgr.LoadConfig(true));
                    }
                    if (lowerXmlFileName.IndexOf("Config\\Horse") > -1)
                    {
                        ZuoQiManager.getInstance().ReLoadConfig(false);
                    }
                }
                result = -1000;
            }
            return(result);
        }
Esempio n. 8
0
        public bool CheckClientCanBuy(GameClient client)
        {
            RegressActiveOpen iflAct = HuodongCachingMgr.GetRegressActiveOpen();
            bool result;

            if (iflAct == null || !iflAct.InActivityTime())
            {
                result = false;
            }
            else if (!iflAct.CanGiveAward())
            {
                result = false;
            }
            else
            {
                DateTime now        = TimeUtil.NowDateTime();
                string   newtime    = new DateTime(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second).ToString("yyyy-MM-dd HH:mm:ss");
                int      CDate      = Global.GetOffsetDay(DateTime.Parse(newtime)) - Global.GetOffsetDay(DateTime.Parse(iflAct.FromDate));
                string   ZeroTime   = "2011-11-11 00$00$00";
                string   GetInfoStr = string.Format("{0}:{1}:{2}", client.ClientData.RoleID, ZeroTime, iflAct.FromDate.Replace(':', '$'));
                string[] dbResult;
                if (TCPProcessCmdResults.RESULT_FAILED == Global.RequestToDBServer(Global._TCPManager.tcpClientPool, Global._TCPManager.TcpOutPacketPool, 14136, GetInfoStr, out dbResult, 0))
                {
                    result = false;
                }
                else if (dbResult == null || dbResult.Length != 2 || Convert.ToInt32(dbResult[0]) != client.ClientData.RoleID)
                {
                    result = false;
                }
                else
                {
                    int Money = Convert.ToInt32(dbResult[1]);
                    if (Money < 0)
                    {
                        Money = 0;
                    }
                    foreach (RegressActiveDayBuyXML item in this.regressActiveDayBuyXML.Values)
                    {
                        bool flag = true;
                        foreach (KeyValuePair <int, int> it in item.TotalYuanBao)
                        {
                            if (it.Value == -1 && Money < it.Key)
                            {
                                flag = false;
                                break;
                            }
                            if (it.Value != -1 && (Money > it.Value || Money < it.Key))
                            {
                                flag = false;
                                break;
                            }
                        }
                        if (flag)
                        {
                            if (CDate == item.Day)
                            {
                                int PurNum = UserMoneyMgr.getInstance().GetChargeItemPurchaseNum(client, item.ZhiGouID);
                                if (item.Max <= 0 || PurNum < item.Max)
                                {
                                    return(true);
                                }
                            }
                        }
                    }
                    result = false;
                }
            }
            return(result);
        }
Esempio n. 9
0
        public bool Init()
        {
            GeneralCachingXmlMgr.RemoveCachingXml(Global.GameResPath("Config\\HuiGuiDayZhiGou.xml"));
            XElement xml = GeneralCachingXmlMgr.GetXElement(Global.GameResPath("Config\\HuiGuiDayZhiGou.xml"));
            bool     result;

            if (null == xml)
            {
                LogManager.WriteLog(LogTypes.Fatal, string.Format("加载系统xml配置文件:{0}, 失败。没有找到相关XML配置文件!", "Config\\HuiGuiDayZhiGou.xml"), null, true);
                result = false;
            }
            else
            {
                this.ActivityType   = 113;
                this.FromDate       = "-1";
                this.ToDate         = "-1";
                this.AwardStartDate = "-1";
                this.AwardEndDate   = "-1";
                try
                {
                    IEnumerable <XElement> xmlItems = xml.Elements();
                    foreach (XElement xmlItem in xmlItems)
                    {
                        RegressActiveDayBuyXML Regress      = new RegressActiveDayBuyXML();
                        Dictionary <int, int>  TotalYuanBao = new Dictionary <int, int>();
                        Regress.ID = Convert.ToInt32(Global.GetSafeAttributeStr(xmlItem, "ID"));
                        string[] Price = Global.GetSafeAttributeStr(xmlItem, "Price").Split(new char[]
                        {
                            '|'
                        });
                        Regress.ZhiGouID     = Convert.ToInt32(Price[2]);
                        Regress.HuoDongLevel = Convert.ToInt32(Global.GetSafeAttributeStr(xmlItem, "HuoDongLevel"));
                        string[] StrRegress = Global.GetSafeAttributeStr(xmlItem, "TotalYuanBao").Split(new char[]
                        {
                            ','
                        });
                        TotalYuanBao.Add(Convert.ToInt32(StrRegress[0]), Convert.ToInt32(StrRegress[1]));
                        Regress.TotalYuanBao = TotalYuanBao;
                        Regress.Day          = Convert.ToInt32(Global.GetSafeAttributeStr(xmlItem, "Day"));
                        Regress.Max          = Convert.ToInt32(Global.GetSafeAttributeStr(xmlItem, "Max"));
                        string goods  = Global.GetSafeAttributeStr(xmlItem, "GoodsID1");
                        string goods2 = Global.GetSafeAttributeStr(xmlItem, "GoodsID2");
                        this.regressActiveDayBuyXML.Add(Regress.ID, Regress);
                        this.ActZhiGouIDSet.Add(Regress.ZhiGouID);
                        UserMoneyMgr.getInstance().CheckChargeItemConfigLogic(Regress.ZhiGouID, Regress.Max, goods, goods2, string.Format("三周年直购 ID={0}", Regress.ID));
                    }
                    if (this.regressActiveDayBuyXML == null || this.ActZhiGouIDSet == null)
                    {
                        return(false);
                    }
                    base.PredealDateTime();
                    GlobalEventSource.getInstance().registerListener(36, this);
                }
                catch (Exception ex)
                {
                    LogManager.WriteException(ex.ToString());
                }
                result = true;
            }
            return(result);
        }
Esempio n. 10
0
 public bool Init()
 {
     try
     {
         Dictionary <int, int> OpenStateDict = new Dictionary <int, int>();
         string strPlatformOpen = GameManager.systemParamsList.GetParamValueByName("YiYuanChongZhiOpen");
         if (!string.IsNullOrEmpty(strPlatformOpen))
         {
             string[] Fields = strPlatformOpen.Split(new char[]
             {
                 '|'
             });
             foreach (string dat in Fields)
             {
                 string[] State = dat.Split(new char[]
                 {
                     ','
                 });
                 if (State.Length == 2)
                 {
                     OpenStateDict[Global.SafeConvertToInt32(State[0])] = Global.SafeConvertToInt32(State[1]);
                 }
             }
         }
         OpenStateDict.TryGetValue(UserMoneyMgr.getInstance().GetActivityPlatformType(), out this.PlatformOpenStateVavle);
         GeneralCachingXmlMgr.RemoveCachingXml(Global.GameResPath("Config/YiYuanChongZhi.xml"));
         XElement xml = GeneralCachingXmlMgr.GetXElement(Global.GameResPath("Config/YiYuanChongZhi.xml"));
         if (null == xml)
         {
             return(false);
         }
         XElement args = xml.Element("YiYuanChongZhi");
         if (null != args)
         {
             this.FromDate                 = Global.GetSafeAttributeStr(args, "BeginTime");
             this.ToDate                   = Global.GetSafeAttributeStr(args, "FinishTime");
             this.ActivityType             = 46;
             this.AwardStartDate           = this.FromDate;
             this.AwardEndDate             = this.ToDate;
             this.OneDollarChongZhiData.ID = (int)Global.GetSafeAttributeLong(args, "ID");
             DateTime.TryParse(this.FromDate, out this.OneDollarChongZhiData.FromDate);
             DateTime.TryParse(this.ToDate, out this.OneDollarChongZhiData.ToDate);
             this.OneDollarChongZhiData.MinZuanShi   = (int)Global.GetSafeAttributeLong(args, "MinZhuanShi");
             this.OneDollarChongZhiData.UserListFile = Global.GetSafeAttributeStr(args, "UserList");
             if (!string.IsNullOrEmpty(this.OneDollarChongZhiData.UserListFile))
             {
                 string filedir = string.Format("Config/{0}", this.OneDollarChongZhiData.UserListFile);
                 filedir = Global.GameResPath(filedir);
                 if (File.Exists(filedir))
                 {
                     string[] allUserIds = File.ReadAllLines(filedir);
                     foreach (string userid in allUserIds)
                     {
                         if (!string.IsNullOrEmpty(userid))
                         {
                             this.OneDollarChongZhiData.UserListSet.Add(userid.ToLower());
                         }
                     }
                 }
             }
             string   GoodsOne = Global.GetSafeAttributeStr(args, "GoodsID1");
             string[] fields   = GoodsOne.Split(new char[]
             {
                 '|'
             });
             if (fields.Length <= 0)
             {
                 LogManager.WriteLog(LogTypes.Warning, string.Format("解析1元充值活动配置文件中的物品配置项1失败", new object[0]), null, true);
             }
             else
             {
                 this.OneDollarChongZhiData.GoodsDataListOne = HuodongCachingMgr.ParseGoodsDataList(fields, "1元充值活动配置1");
             }
             string GoodsTwo = Global.GetSafeAttributeStr(args, "GoodsID2");
             if (!string.IsNullOrEmpty(GoodsTwo))
             {
                 fields = GoodsTwo.Split(new char[]
                 {
                     '|'
                 });
                 this.OneDollarChongZhiData.GoodsDataListTwo = HuodongCachingMgr.ParseGoodsDataList(fields, "1元充值活动配置2");
             }
         }
         base.PredealDateTime();
     }
     catch (Exception ex)
     {
         LogManager.WriteLog(LogTypes.Fatal, string.Format("{0}解析出现异常, {1}", "Config/YiYuanChongZhi.xml", ex.Message), null, true);
         return(false);
     }
     return(true);
 }
 public bool Init()
 {
     try
     {
         Dictionary <int, int> OpenStateDict = new Dictionary <int, int>();
         string strPlatformOpen = GameManager.systemParamsList.GetParamValueByName("OneDollarBuyOpen");
         if (!string.IsNullOrEmpty(strPlatformOpen))
         {
             string[] Fields = strPlatformOpen.Split(new char[]
             {
                 '|'
             });
             foreach (string dat in Fields)
             {
                 string[] State = dat.Split(new char[]
                 {
                     ','
                 });
                 if (State.Length == 2)
                 {
                     OpenStateDict[Global.SafeConvertToInt32(State[0])] = Global.SafeConvertToInt32(State[1]);
                 }
             }
         }
         OpenStateDict.TryGetValue(UserMoneyMgr.getInstance().GetActivityPlatformType(), out this.PlatformOpenStateVavle);
         GeneralCachingXmlMgr.RemoveCachingXml(Global.GameResPath("Config/OneDollarBuy.xml"));
         XElement xml = GeneralCachingXmlMgr.GetXElement(Global.GameResPath("Config/OneDollarBuy.xml"));
         if (null == xml)
         {
             return(false);
         }
         XElement args = xml.Element("OneDollarBuy");
         if (null != args)
         {
             this.FromDate                  = Global.GetSafeAttributeStr(args, "BeginTime");
             this.ToDate                    = Global.GetSafeAttributeStr(args, "FinishTime");
             this.ActivityType              = 45;
             this.AwardStartDate            = this.FromDate;
             this.AwardEndDate              = this.ToDate;
             this.OneDollarBuyConfigData.ID = (int)Global.GetSafeAttributeLong(args, "ID");
             DateTime.TryParse(this.FromDate, out this.OneDollarBuyConfigData.FromDate);
             DateTime.TryParse(this.ToDate, out this.OneDollarBuyConfigData.ToDate);
             this.OneDollarBuyConfigData.ZhiGouID       = (int)Global.GetSafeAttributeLong(args, "ZhiGouID");
             this.OneDollarBuyConfigData.SinglePurchase = (int)Global.GetSafeAttributeLong(args, "SinglePurchase");
             string GoodsOne = Global.GetSafeAttributeStr(args, "GoodsID1");
             string GoodsTwo = Global.GetSafeAttributeStr(args, "GoodsID2");
             UserMoneyMgr.getInstance().CheckChargeItemConfigLogic(this.OneDollarBuyConfigData.ZhiGouID, this.OneDollarBuyConfigData.SinglePurchase, GoodsOne, GoodsTwo, string.Format("1元直购 ID={0}", this.OneDollarBuyConfigData.ID));
         }
         base.PredealDateTime();
         if (!this.InActivityTime())
         {
             GameManager.ClientMgr.NotifyAllActivityState(8, 0, "", "", 0);
         }
         else
         {
             GameManager.ClientMgr.NotifyAllActivityState(8, this.PlatformOpenStateVavle, "", "", 0);
         }
         GlobalEventSource.getInstance().registerListener(36, this);
     }
     catch (Exception ex)
     {
         LogManager.WriteLog(LogTypes.Fatal, string.Format("{0}解析出现异常, {1}", "Config/OneDollarBuy.xml", ex.Message), null, true);
         return(false);
     }
     return(true);
 }
        public string BuildOneDollarBuyActInfoForClient(GameClient client)
        {
            int PurNum = UserMoneyMgr.getInstance().GetChargeItemPurchaseNum(client, this.OneDollarBuyConfigData.ZhiGouID);

            return(string.Format("{0}:{1}", this.OneDollarBuyConfigData.ID, PurNum));
        }
 public bool Init()
 {
     try
     {
         string activityTm = GameManager.systemParamsList.GetParamValueByName("SuperChongZhiFanLi");
         if (string.IsNullOrEmpty(activityTm))
         {
             LogManager.WriteLog(LogTypes.Warning, string.Format("解析大型节日充值返利活动配置文件中的SuperChongZhiFanLi失败", new object[0]), null, true);
             return(false);
         }
         string[] TmFields = activityTm.Split(new char[]
         {
             '|'
         });
         if (TmFields.Length != 2)
         {
             LogManager.WriteLog(LogTypes.Warning, string.Format("解析大型节日充值返利活动配置文件中的SuperChongZhiFanLi失败", new object[0]), null, true);
             return(false);
         }
         this.FromDate       = TmFields[0];
         this.ToDate         = TmFields[1];
         this.ActivityType   = 71;
         this.AwardStartDate = this.FromDate;
         this.AwardEndDate   = this.ToDate;
         base.PredealDateTime();
         string strCmd = GameManager.GameConfigMgr.GetGameConfigItemStr("platformtype", "app");
         strCmd = strCmd.ToLower();
         string sectionKey = string.Empty;
         if (strCmd == "app")
         {
             sectionKey = "dl_app";
         }
         else if (strCmd == "yueyu")
         {
             sectionKey = "dl_yueyu";
         }
         else if (strCmd == "andrid" || strCmd == "android" || strCmd == "yyb")
         {
             sectionKey = "dl_android";
         }
         else
         {
             sectionKey = "dl_app";
         }
         this.JieriSuperInputDict.Clear();
         GeneralCachingXmlMgr.RemoveCachingXml(Global.GameResPath("Config/MU_ChongZhiFanLi.xml"));
         XElement xml = GeneralCachingXmlMgr.GetXElement(Global.GameResPath("Config/MU_ChongZhiFanLi.xml"));
         if (xml != null)
         {
             IEnumerable <XElement> xmlItems = xml.Elements().First((XElement _xml) => _xml.Attribute("TypeID").Value.ToString().ToLower() == sectionKey).Elements();
             foreach (XElement item in xmlItems)
             {
                 if (null != item)
                 {
                     JieriSuperInputData superInputData = new JieriSuperInputData();
                     superInputData.ID              = (int)Global.GetSafeAttributeLong(item, "ID");
                     superInputData.MutiNum         = (int)Global.GetSafeAttributeLong(item, "Num");
                     superInputData.PurchaseNum     = (int)Global.GetSafeAttributeLong(item, "SinglePurchase");
                     superInputData.FullPurchaseNum = (int)Global.GetSafeAttributeLong(item, "FullPurchase");
                     DateTime actDate;
                     DateTime.TryParse(Global.GetSafeAttributeStr(item, "Data"), out actDate);
                     TimeSpan actBegin;
                     TimeSpan.TryParse(Global.GetSafeAttributeStr(item, "BeginTime"), out actBegin);
                     TimeSpan actEnd;
                     TimeSpan.TryParse(Global.GetSafeAttributeStr(item, "EndTime"), out actEnd);
                     superInputData.BeginTime = actDate + actBegin;
                     superInputData.EndTime   = actDate + actEnd;
                     this.JieriSuperInputDict[superInputData.ID] = superInputData;
                 }
             }
         }
         Dictionary <int, int> OpenStateDict = new Dictionary <int, int>();
         string strPlatformOpen = GameManager.systemParamsList.GetParamValueByName("SuperChongZhiFanLiOpen");
         if (!string.IsNullOrEmpty(strPlatformOpen))
         {
             string[] Fields = strPlatformOpen.Split(new char[]
             {
                 '|'
             });
             foreach (string dat in Fields)
             {
                 string[] State = dat.Split(new char[]
                 {
                     ','
                 });
                 if (State.Length == 2)
                 {
                     OpenStateDict[Global.SafeConvertToInt32(State[0])] = Global.SafeConvertToInt32(State[1]);
                 }
             }
         }
         OpenStateDict.TryGetValue(UserMoneyMgr.getInstance().GetActivityPlatformType(), out this.PlatformOpenStateVavle);
         if (!this.InActivityTime())
         {
             GameManager.ClientMgr.NotifyAllActivityState(11, 0, "", "", 0);
         }
         else
         {
             GameManager.ClientMgr.NotifyAllActivityState(11, this.PlatformOpenStateVavle, "", "", 0);
         }
     }
     catch (Exception ex)
     {
         LogManager.WriteLog(LogTypes.Fatal, string.Format("{0}解析出现异常, {1}", "Config/MU_ChongZhiFanLi.xml", ex.Message), null, true);
         return(false);
     }
     return(true);
 }