少年修仙传客户端代码仓库
client_linchunjie
2018-10-18 2bdca925498c2b06de803cd6ec1704faef8eec30
System/OpenServerActivity/OperationFlashRushToBuy.cs
@@ -91,9 +91,22 @@
        {
            if(PlayerDatas.Instance.baseData.LV >= limitLv)
            {
                if(InAdvanceTime(TimeUtility.ServerNow) || InTime(TimeUtility.ServerNow))
                if(flashShops.Count > 0)
                {
                    return true;
                    int openSeconds = 0;
                    int endSeconds = 0;
                    var fristShop = flashShops[0];
                    var lastShop = flashShops[flashShops.Count - 1];
                    int OpenState = GetBuyTimeState(TimeUtility.ServerNow,fristShop.dayIndex,fristShop.timeIndex, out openSeconds);
                    int endState = GetBuyTimeState(TimeUtility.ServerNow,lastShop.dayIndex, lastShop.timeIndex,out endSeconds);
                    if(OpenState == -1 && openSeconds <= inAdvanceMinute*60)
                    {
                        return true;
                    }
                    else if(endState != 1 && OpenState != -1)
                    {
                        return true;
                    }
                }
            }
            return false;
@@ -132,7 +145,7 @@
                    var item = new FlashSaleItem();
                    var saleItem = shop.GiftbagInfo[k];
                    item.shopId = (int)saleItem.GiftID;
                    item.shopGuid = shop.DayIndex*1000 + shop.TimeIndex*100 + k;
                    item.shopGuid = shop.DayIndex*10000 + shop.TimeIndex*100 + k;
                    item.limitNum = saleItem.BuyCountLimit;
                    item.fullServerLimitNum = saleItem.ServerBuyCountLimit;
                    item.moneyType = saleItem.MoneyType;