| | |
| | | FuncOpen.Instance.OnFuncStateChangeEvent += OnFuncStateChangeEvent;
|
| | | OperationTimeHepler.Instance.operationStartEvent += OperationStartEvent;
|
| | | OperationTimeHepler.Instance.operationEndEvent += OperationEndEvent;
|
| | | OperationTimeHepler.Instance.operationAdvanceEvent += OperationAdvanceEvent;
|
| | | }
|
| | |
|
| | | private void OperationAdvanceEvent(Operation type)
|
| | | {
|
| | | if (type == Operation.FlashSale)
|
| | | {
|
| | | if (openServerActivityStateChange != null)
|
| | | {
|
| | | openServerActivityStateChange();
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | private void OperationEndEvent(Operation type, int state)
|
| | |
| | |
|
| | | public bool IsFlashSaleOpen()
|
| | | {
|
| | | return flashSaleModel.IsOpen;
|
| | | return flashSaleModel.IsOpen || flashSaleModel.InAdvanceOpen;
|
| | | }
|
| | |
|
| | | public bool IsConsumeRebateOpen()
|