From 970b855cbcb3098e355bff473d510eb1fcd34c62 Mon Sep 17 00:00:00 2001
From: client_Hale <339726288@qq.com>
Date: 星期一, 15 十月 2018 14:12:41 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Welfare/OperationTimeHepler.cs | 42 +++++++++++++++++++++++++++++++++++++++++-
1 files changed, 41 insertions(+), 1 deletions(-)
diff --git a/System/Welfare/OperationTimeHepler.cs b/System/Welfare/OperationTimeHepler.cs
index 2e2a544..1b582a2 100644
--- a/System/Welfare/OperationTimeHepler.cs
+++ b/System/Welfare/OperationTimeHepler.cs
@@ -223,6 +223,45 @@
}
/// <summary>
+ /// 闄愭椂鎶㈣喘
+ /// </summary>
+ /// <param name="package"></param>
+ public void UpdateFlashRushToBuy(HAA17_tagMCFlashSaleInfo package)
+ {
+ OperationBase operationBase = null;
+ operationDict.TryGetValue(Operation.FlashRushToBuy, out operationBase);
+ if (string.IsNullOrEmpty(package.StartDate) || string.IsNullOrEmpty(package.EndtDate))
+ {
+ ForceStopOperation(Operation.FlashRushToBuy);
+ }
+ else
+ {
+ if (operationBase == null)
+ {
+ operationBase = new OperationFlashRushToBuy();
+ operationDict.Add(Operation.FlashRushToBuy, operationBase);
+ }
+ OperationFlashRushToBuy operation = operationBase as OperationFlashRushToBuy;
+ operation.Reset();
+ operation.limitLv = package.LimitLV;
+ operation.startDate = ParseOperationDate(package.StartDate);
+ operation.endDate = ParseOperationDate(package.EndtDate);
+ operation.dayReset = package.IsDayReset == 1;
+ operation.inAdvanceMinute = package.AdvanceMinutes;
+ for (int i = 0; i < package.ActivityTimeCount; i++)
+ {
+ operation.times.Add(ParseOperationTime(package.ActivityTime[i].StartTime,
+ package.ActivityTime[i].EndtTime));
+ }
+ operation.ParsePackage(package);
+ if (operationTimeUpdateEvent != null)
+ {
+ operationTimeUpdateEvent(Operation.FlashRushToBuy);
+ }
+ }
+ }
+
+ /// <summary>
/// 闄愭椂绀煎寘
/// </summary>
/// <param name="package"></param>
@@ -643,11 +682,12 @@
{
MultipleExp,
ConsumeRebate,
- FlashSale,
+ FlashSale,//闄愭椂鐗规儬
BossReborn,
GiftPackage,
FairyCeremony, //浠欑晫鐩涘吀
MultipRealmPoint, //N鍊嶄慨琛岀偣
+ FlashRushToBuy, //闄愭椂鎶㈣喘
max,
}
}
--
Gitblit v1.8.0