1
This commit is contained in:
parent
34a0772bea
commit
e97e155c80
@ -111,4 +111,6 @@ type DbLogMgr interface {
|
||||
FriendAdd(string, string)
|
||||
FriendDel(string, string)
|
||||
|
||||
GuildClearEmptyStart(string)
|
||||
GuildClearEmptyEnd(string)
|
||||
}
|
||||
|
@ -49,7 +49,7 @@ func GetApp() common.App {
|
||||
return app
|
||||
}
|
||||
|
||||
func GetDbMgrLog() common.DbLogMgr {
|
||||
func GetDbLogMgr() common.DbLogMgr {
|
||||
return dbLogMgr
|
||||
}
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user