This commit is contained in:
aozhiwei 2024-04-11 21:30:31 +08:00
parent ce6071c29f
commit 8b2ee5f29a
2 changed files with 3 additions and 13 deletions

View File

@ -172,18 +172,8 @@ func (this *guild) asyncLeave(accountId string, cb func(int32, string)) {
})
}
}
if this.GetMemberNum() <= 0 {
model.Guild.DeleteSoft(this.guildId,
func (err error, lastInsertId int64, rowsAffected int64) {
if err != nil {
cb(500, "server internal error")
return
}
this.disband()
cb(0, "")
return
})
}
this.disband()
cb(0, "")
})
}

View File

@ -35,7 +35,7 @@ func (this *guild) DeleteSoft(guildId string,
constant.FRIEND_DB,
"t_guild",
[][]string{
{"!guild_name", q5.ToString("'!' + guild_name")},
{"!guild_name", q5.ToString("CONCAT(\"!\", `guild_name`)")},
{"deleted", "1"},
},
[][]string{