| | |
| | | def GetOSACelebrationState(curPlayer):
|
| | | ## 玩家是否在开服庆典活动中
|
| | | # @return: 0-未开启;1-活动中;2-结束显示期;3-结束关闭期
|
| | | funcID = ShareDefine.GameFuncID_OSA_Celebration
|
| | | if not GameFuncComm.GetFuncCanUse(curPlayer, funcID):
|
| | | #GameWorld.DebugLog("开服庆典功能未开启! funcID=%s" % (funcID))
|
| | | return 0
|
| | | #开服庆典,后端不限制功能是否开启
|
| | | #funcID = ShareDefine.GameFuncID_OSA_Celebration
|
| | | #if not GameFuncComm.GetFuncCanUse(curPlayer, funcID):
|
| | | # #GameWorld.DebugLog("开服庆典功能未开启! funcID=%s" % (funcID))
|
| | | # return 0
|
| | | endDay = IpyGameDataPY.GetFuncCfg("OSACelebration", 1)
|
| | | serverDay = DBDataMgr.GetEventTrigMgr().GetValue(ShareDefine.Def_ServerDay) + 1
|
| | | if serverDay <= endDay:
|