| | |
| | | for (int i = 0; i < configs.Count; i++)
|
| | | {
|
| | | var config = configs[i];
|
| | | if (config.CanEnter == 0)
|
| | | {
|
| | | continue;
|
| | | }
|
| | |
|
| | | if (config.StartWeekday == 0 && config.EndWeekday == 0)
|
| | | {
|
| | | for (int j = 0; j < 7; j++)
|
| | |
| | |
|
| | | foreach (var config in configs)
|
| | | {
|
| | | if (config.CanEnter == 0)
|
| | | {
|
| | | continue;
|
| | | }
|
| | |
|
| | | var openDayWeek = config.OpenServerWeek % 7;
|
| | | if (!specialOpenTimes.ContainsKey(openDayWeek))
|
| | | {
|
| | |
| | | hourMinutes.Add(new HourMinute(config.StartHour, config.StartMinute, config.EndHour, config.EndMinute));
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | public bool IsValidServerOpenTime()
|
| | | {
|