This commit is contained in:
aozhiwei 2024-04-09 16:16:36 +08:00
parent c57b0e8eb7
commit f57c2ecd10

View File

@ -248,12 +248,12 @@ func (this *guild) asyncLeave(accountId string, cb func(int32, string)) {
}) })
} }
func (this *guild) asyncUpdateOwner(owner string, cb func(int32, string)) { func (this *guild) asyncUpdateOwner(ownerId string, cb func(int32, string)) {
f5.GetJsStyleDb().Update( f5.GetJsStyleDb().Update(
constant.FRIEND_DB, constant.FRIEND_DB,
"t_guild", "t_guild",
[][]string{ [][]string{
{"owner_id", owner}, {"owner_id", ownerId},
}, },
[][]string{ [][]string{
{"guild_id", this.guildId}, {"guild_id", this.guildId},
@ -263,6 +263,7 @@ func (this *guild) asyncUpdateOwner(owner string, cb func(int32, string)) {
cb(500, "server internal error") cb(500, "server internal error")
return return
} }
this.ownerId = ownerId
cb(0, "") cb(0, "")
return return
}) })