1
This commit is contained in:
parent
d3fec7ab48
commit
48af45b579
@ -104,7 +104,7 @@ func (this *guild) updateByKv(kv map[int32]string) {
|
||||
}
|
||||
|
||||
func (this *guild) disband() {
|
||||
model.Guild.Delete(this.guildId,
|
||||
model.Guild.DeleteSoft(this.guildId,
|
||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||
})
|
||||
model.GuildApply.Clear(this.guildId,
|
||||
@ -149,7 +149,7 @@ func (this *guild) asyncLeave(accountId string, cb func(int32, string)) {
|
||||
cb(0, "")
|
||||
return
|
||||
}
|
||||
model.GuildMember.Delete(this.guildId, m.memberId,
|
||||
model.GuildMember.DeleteSoft(this.guildId, m.memberId,
|
||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||
if err != nil {
|
||||
cb(500, "server internal error")
|
||||
@ -173,7 +173,7 @@ func (this *guild) asyncLeave(accountId string, cb func(int32, string)) {
|
||||
}
|
||||
}
|
||||
if this.GetMemberNum() <= 0 {
|
||||
model.Guild.Delete(this.guildId,
|
||||
model.Guild.DeleteSoft(this.guildId,
|
||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||
if err != nil {
|
||||
cb(500, "server internal error")
|
||||
|
@ -541,7 +541,7 @@ func (this *guildMgr) AsyncKickout(accountId string, targetId string, cb func(in
|
||||
{constant.GUILD_MEMBER_LOCK_KEY, targetId},
|
||||
},
|
||||
func (task *f5.LockAsyncTask) {
|
||||
model.GuildMember.Delete(guild.guildId, targetId,
|
||||
model.GuildMember.DeleteSoft(guild.guildId, targetId,
|
||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||
if err != nil {
|
||||
cb(500, "server internal error")
|
||||
@ -750,7 +750,7 @@ func (this *guildMgr) clearEmptyGuild() {
|
||||
for _, g := range(emptyGuilds) {
|
||||
this.delGuildNoRearrangement(g)
|
||||
GetDbLogMgr().GuildClearEmptyStart(g.guildId, g.guildName)
|
||||
model.Guild.Delete(g.guildId,
|
||||
model.Guild.DeleteSoft(g.guildId,
|
||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||
})
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ func (this *guild) New(guildId string, guildName string, creatorId string, avata
|
||||
cb)
|
||||
}
|
||||
|
||||
func (this *guild) Delete(guildId string,
|
||||
func (this *guild) DeleteSoft(guildId string,
|
||||
cb func (error, int64, int64)) {
|
||||
f5.GetJsStyleDb().Update(
|
||||
constant.FRIEND_DB,
|
||||
|
@ -38,7 +38,7 @@ func (this *guildMember) Force(memberId string, guildId string, guildJob int32,
|
||||
cb)
|
||||
}
|
||||
|
||||
func (this *guildMember) Delete(guildId string, memberId string,
|
||||
func (this *guildMember) DeleteSoft(guildId string, memberId string,
|
||||
cb func (error, int64, int64)) {
|
||||
f5.GetJsStyleDb().Update(
|
||||
constant.FRIEND_DB,
|
||||
|
Loading…
x
Reference in New Issue
Block a user