hxp
2019-10-29 2941a7635bb04ca59afa820b51a23aca9dc70eb9
ServerPython/CoreServerGroup/GameServer/Script/GameWorld.py
@@ -544,6 +544,15 @@
    @param dateInfo: 运营活动表配置的日期信息, 如果是纯数字代表开服天
    @param openServerDay: 当前开服天
    '''
    if not dateInfo:
        curDateTime = datetime.datetime.today()
        return "%d-%d-%d" % (curDateTime.year, curDateTime.month, curDateTime.day)
    if dateInfo.startswith("W"):
        curDateTime = datetime.datetime.today()
        curWeekday = curDateTime.weekday() + 1
        actionWeekday = int(dateInfo[1:])
        actionDateTime = curDateTime + datetime.timedelta(days=(actionWeekday-curWeekday))
        return "%d-%d-%d" % (actionDateTime.year, actionDateTime.month, actionDateTime.day)
    if dateInfo.startswith("Mix"):
        diffDay = PlayerDBGSEvent.GetDBGSTrig_ByKey(PlayerDBGSEvent.Def_MixServerDay) + 1
        actionServerDay = int(dateInfo[3:])