This commit is contained in:
aozhiwei 2024-04-11 10:44:10 +08:00
parent 34a0772bea
commit e97e155c80
3 changed files with 9 additions and 1 deletions

View File

@ -111,4 +111,6 @@ type DbLogMgr interface {
FriendAdd(string, string)
FriendDel(string, string)
GuildClearEmptyStart(string)
GuildClearEmptyEnd(string)
}

View File

@ -49,7 +49,7 @@ func GetApp() common.App {
return app
}
func GetDbMgrLog() common.DbLogMgr {
func GetDbLogMgr() common.DbLogMgr {
return dbLogMgr
}

View File

@ -7,6 +7,7 @@ import (
"main/constant"
"fmt"
"mt"
. "main/global"
)
type guildMgr struct {
@ -903,6 +904,11 @@ func (this *guildMgr) clearEmptyGuild() {
}
return true
})
for _, g := range(emptyGuilds) {
delete(this.idHash, g.guildId)
delete(this.nameHash, g.guildName)
GetDbLogMgr().GuildClearEmptyStart(g.guildId)
}
}
func (this* guildMgr) updateGuildRank(guild *guild) {