少年修仙传客户端代码仓库
Client_PangDeRong
2018-10-13 68488b8a0429ede7baeae681289e730ba4971968
System/OpenServerActivity/FlashSaleTimeCell.cs
@@ -38,7 +38,7 @@
            timeIndex = -1;
            if (operation == null) return;
            int days = operation.totalDays;
            int days = operation.totalDays + 1;
            dayIndex = cell.index/(operation.flashShops.Count / days);
            timeIndex = cell.index % (operation.flashShops.Count / days);
            if(dayIndex == rushToBuyModel.presentFlashShop.dayIndex 
@@ -57,7 +57,7 @@
        public void UpdateBuyState()
        {
            if (operation == null) return;
            if (operation == null || timeIndex == -1) return;
            int seconds = 0;
            OperationTime operationTime = operation.times[timeIndex];
@@ -75,8 +75,11 @@
                    remainText.text = StringUtility.Contact("秒杀进行中", TimeUtility.SecondsToHMS(seconds));
                    break;
                case 1:
                    if(selectImg.activeInHierarchy)
                    {
                        rushToBuyModel.SetDefaultSelectSaleTime();
                    }
                    this.gameObject.SetActive(false);
                    rushToBuyModel.UpdateSelectFlashSaleTime(dayIndex, timeIndex);
                    break;
            }
        }