From 53e8e14f53ad83005d5b382b82e238392b3a07cc Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期二, 14 八月 2018 11:10:30 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Welfare/MultipleRealmPointModel.cs | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/System/Welfare/MultipleRealmPointModel.cs b/System/Welfare/MultipleRealmPointModel.cs
index f34af24..faf147b 100644
--- a/System/Welfare/MultipleRealmPointModel.cs
+++ b/System/Welfare/MultipleRealmPointModel.cs
@@ -5,8 +5,7 @@
{
public class MultipleRealmPointModel : Model,IBeforePlayerDataInitialize,IAfterPlayerDataInitialize,IPlayerLoginOk
{
- public const int MULTIPLEREALM_KEY = 20109;
- public Redpoint multipleRed = new Redpoint(201,MULTIPLEREALM_KEY);
+ public Redpoint multipleRed = new Redpoint(MainRedDot.REDPOINT_OPENSERVER, 20908);
public string LocalRecord_Key = "MultipleRealmRecord";
bool isNewDay = false;
public override void Init()
@@ -41,6 +40,16 @@
}
+ public bool IsOpen
+ {
+ get
+ {
+ OperationBase operation;
+ OperationTimeHepler.Instance.TryGetOperationTime(Operation.MultipRealmPoint, out operation);
+ return operation != null && operation.SatisfyOpenCondition() && operation.InDay(TimeUtility.ServerNow);
+ }
+ }
+
private void RefreshOperationClose(Operation type)
{
if (type != Operation.MultipRealmPoint) return;
--
Gitblit v1.8.0