1
This commit is contained in:
parent
ce6071c29f
commit
8b2ee5f29a
@ -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
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user