This commit is contained in:
aozhiwei 2024-04-05 14:37:32 +08:00
parent 571ea3655d
commit 514aa9d810

View File

@ -77,7 +77,7 @@ func (gm *GuildMgr) CreateGuild(p *Player, avatar int32, guildName string, leade
return return
} }
guildId := f5.GetApp().NewUuid() guildId := f5.GetApp().NewNodeUuid()
if gm.ExistsGuild(guildId) { if gm.ExistsGuild(guildId) {
cb(ERR_CODE_CREATE_GUILD_FAIL, "Failed to create guild", nil) cb(ERR_CODE_CREATE_GUILD_FAIL, "Failed to create guild", nil)
return return
@ -657,7 +657,7 @@ func (gm *GuildMgr) Disband(operatorAccountId string, cb func(errCode int32, err
guildName := guild.Name guildName := guild.Name
// 解散公会, 同时释放name // 解散公会, 同时释放name
newName := "DisbandedGuild_" + q5.ToString(f5.GetApp().NewUuid()) newName := "DisbandedGuild_" + q5.ToString(f5.GetApp().NewNodeUuid())
updateFields := [][]string{ updateFields := [][]string{
{"name", newName}, {"name", newName},
{"is_deleted", q5.ToString(1)}, {"is_deleted", q5.ToString(1)},