1
This commit is contained in:
parent
fe14092f0b
commit
43f2c4e116
@ -6,6 +6,7 @@ import (
|
||||
"cs"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"main/constant"
|
||||
"main/model"
|
||||
. "main/global"
|
||||
)
|
||||
|
||||
@ -176,16 +177,7 @@ func (this *guild) asyncLeave(accountId string, cb func(int32, string)) {
|
||||
cb(0, "")
|
||||
return
|
||||
}
|
||||
f5.GetJsStyleDb().Update(
|
||||
constant.FRIEND_DB,
|
||||
"t_guild_member",
|
||||
[][]string{
|
||||
{"deleted", "1"},
|
||||
},
|
||||
[][]string{
|
||||
{"guild_id", this.guildId},
|
||||
{"member_id", m.memberId},
|
||||
},
|
||||
model.GuildMember.Delete(this.guildId, m.memberId,
|
||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||
if err != nil {
|
||||
cb(500, "server internal error")
|
||||
|
@ -360,7 +360,7 @@ func (this *guildMgr) asyncAcceptApplyTask(task *f5.LockAsyncTask, guild *guild,
|
||||
func (err error, lastInsertId int64, rowsAffected int64) {
|
||||
if err != nil {
|
||||
task.SetFail()
|
||||
cb(1, "")
|
||||
cb(500, "server internal error")
|
||||
return
|
||||
}
|
||||
m := newMember()
|
||||
|
@ -37,3 +37,18 @@ func (this *guildMember) Force(memberId string, guildId string, guildJob int32,
|
||||
},
|
||||
cb)
|
||||
}
|
||||
|
||||
func (this *guildMember) Delete(guildId string, memberId string,
|
||||
cb func (error, int64, int64)) {
|
||||
f5.GetJsStyleDb().Update(
|
||||
constant.FRIEND_DB,
|
||||
"t_guild_member",
|
||||
[][]string{
|
||||
{"deleted", "1"},
|
||||
},
|
||||
[][]string{
|
||||
{"guild_id", guildId},
|
||||
{"member_id", memberId},
|
||||
},
|
||||
cb)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user