优化注册与登录流程

This commit is contained in:
flswld
2023-04-04 18:09:14 +08:00
parent 4bc835e0b1
commit d542647f55
22 changed files with 474 additions and 600 deletions

View File

@@ -152,12 +152,6 @@ func (t *TickManager) OnGameServerTick() {
if t.globalTickCount%(60000*60/ServerTickTime) == 0 {
t.onTickHour(now)
}
if t.globalTickCount%(60000*60*24/ServerTickTime) == 0 {
t.onTickDay(now)
}
if t.globalTickCount%(60000*60*24*7/ServerTickTime) == 0 {
t.onTickWeek(now)
}
for userId, userTick := range t.userTickMap {
if len(userTick.globalTick.C) == 0 {
// 跳过还没到时间的定时器
@@ -184,14 +178,6 @@ func (t *TickManager) OnGameServerTick() {
}
}
func (t *TickManager) onTickWeek(now int64) {
logger.Info("on tick week, time: %v", now)
}
func (t *TickManager) onTickDay(now int64) {
logger.Info("on tick day, time: %v", now)
}
func (t *TickManager) onTickHour(now int64) {
logger.Info("on tick hour, time: %v", now)
}