|  |  |  | 
|---|
|  |  |  | customMaxServerDateTime = curDateTime + datetime.timedelta(days=(customMaxServerDay-openServerDay)) | 
|---|
|  |  |  | curStartDateTime = datetime.datetime.strptime("%s %02d:%02d:%02d" % (startDateStr, customMaxServerDateTime.hour, customMaxServerDateTime.minute, | 
|---|
|  |  |  | customMaxServerDateTime.second), ChConfig.TYPE_Time_Format) | 
|---|
|  |  |  | if curServerOpenDateTime <= curStartDateTime <= customMaxServerDateTime: | 
|---|
|  |  |  | if customOpenServerDayState and curServerOpenDateTime <= curStartDateTime <= customMaxServerDateTime: | 
|---|
|  |  |  | if actName not in startDateInCustomCanOpenList: | 
|---|
|  |  |  | GameWorld.Log("        按日期/周开的开始日期在开服定制限制天内,不处理! cfgID=%s,curServerOpenDateTime=%s<=curStartDateTime=%s<=customMaxServerDateTime=%s" % (cfgID, curServerOpenDateTime, curStartDateTime, customMaxServerDateTime)) | 
|---|
|  |  |  | continue | 
|---|
|  |  |  | 
|---|
|  |  |  | customMaxServerDateTime = curDateTime + datetime.timedelta(days=(maxCustomServerDayMix-mixServerDay)) | 
|---|
|  |  |  | curStartDateTime = datetime.datetime.strptime("%s %02d:%02d:%02d" % (startDateStr, customMaxServerDateTime.hour, customMaxServerDateTime.minute, | 
|---|
|  |  |  | customMaxServerDateTime.second), ChConfig.TYPE_Time_Format) | 
|---|
|  |  |  | if mixStartServerDateTime <= curStartDateTime <= customMaxServerDateTime: | 
|---|
|  |  |  | if customMixServerDayState and mixStartServerDateTime <= curStartDateTime <= customMaxServerDateTime: | 
|---|
|  |  |  | if actName not in startDateInCustomCanOpenList: | 
|---|
|  |  |  | GameWorld.Log("        按日期/周开的开始日期在合服定制限制天内,不处理! cfgID=%s,mixStartServerDateTime=%s<=curStartDateTime=%s<=customMaxServerDateTime=%s" % (cfgID, mixStartServerDateTime, curStartDateTime, customMaxServerDateTime)) | 
|---|
|  |  |  | continue | 
|---|
|  |  |  | 
|---|
|  |  |  | activityInfoDict[ShareDefine.ActKey_WorldLVList] = GameWorldAverageLv.GetWorldLVListByTime(startDayDate, (endDayDate - startDayDate).days) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if startDayDate <= curDateTime < endDayDate: | 
|---|
|  |  |  | dayIndex = 0 | 
|---|
|  |  |  | dayIndex = (curDateTime - startDayDate).days | 
|---|
|  |  |  | actIDDateTime = startDayDate | 
|---|
|  |  |  | isDayRest = 0 if not hasattr(ipyData, "GetIsDayReset") else ipyData.GetIsDayReset() | 
|---|
|  |  |  | # 按时段开的默认每天重置 | 
|---|
|  |  |  | if isDayRest or (startHMStrList and endHMStrList): | 
|---|
|  |  |  | dayIndex = (curDateTime - startDayDate).days | 
|---|
|  |  |  | actIDDateTime += datetime.timedelta(days=dayIndex) | 
|---|
|  |  |  | actID = int(time.mktime(actIDDateTime.timetuple())) # 默认取开始时间点的time值作为活动ID | 
|---|
|  |  |  | activityInfoDict[ShareDefine.ActKey_DayIndex] = dayIndex | 
|---|