少年修仙传客户端代码仓库
client_Wu Xijin
2018-09-18 bbd7bbe9ed3a1eae6cd9ca45ca149cc7f882daa2
System/OpenServerActivity/OSRedEnvelopeModel.cs
@@ -103,12 +103,9 @@
        public List<int> m_AllFuncs { get; private set; }
        public int openDays { get; private set; }
        public int OSRedEnvelopeType { get; private set; }
        public int initialCount { get; private set; }
        public int addSeconds { get; private set; }
        public int limitCount { get; private set; }
        public float envelopeVoiceCD { get; private set; }
        public int addCounts { get; private set; }
        public DateTime overTime = DateTime.Now;
        public DateTime coolDownTime { get; private set; }
        void ParseConfig()
        {
            var _allCfgs = Config.Instance.GetAllValues<OSRedAchieveConfig>();
@@ -135,9 +132,7 @@
            var _cfg = Config.Instance.Get<FuncConfigConfig>("OpenServerRedPacketCfg");
            openDays = int.Parse(_cfg.Numerical1);
            initialCount = int.Parse(_cfg.Numerical2);
            addSeconds = Mathf.Max(60, int.Parse(_cfg.Numerical3));
            limitCount = int.Parse(_cfg.Numerical4);
            addCounts = int.Parse(_cfg.Numerical5);
            _cfg = Config.Instance.Get<FuncConfigConfig>("OpenServerRedPacketType");
            OSRedEnvelopeType = int.Parse(_cfg.Numerical1);
            _cfg = Config.Instance.Get<FuncConfigConfig>("RedEnvelopeVoiceCd");
@@ -444,7 +439,6 @@
        {
            totalJadeGet = (int)_pak.MoneyNum;
            getEnvelopeTimes = _pak.GrabCnt;
            coolDownTime = TimeUtility.GetTime(_pak.StartTime);
            if (OSRedEnvelopeInfoEnvent != null)
            {
                OSRedEnvelopeInfoEnvent();