mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-03-01 00:35:36 +08:00
优化注册与登录流程
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user