This commit is contained in:
aozhiwei 2024-04-08 14:35:21 +08:00
parent 16c1d480fd
commit 48139bfac4
3 changed files with 12 additions and 2 deletions

View File

@ -96,7 +96,7 @@ type GuildMgr interface {
AsyncLeave(string, func(int32, string))
AsyncKickout(string, string, func(int32, string))
AsyncDisband(string, string, func(int32, string))
AsyncDisband(string, func(int32, string, []string))
AsyncSetNotice(string, string, func(int32, string))
AsyncSetAvatar(string, string, func(int32, string))
AsyncSetName(string, string, func(int32, string))

View File

@ -468,7 +468,7 @@ func (this *guildMgr) AsyncKickout(accountId string, targetId string, cb func(in
}
}
func (this *guildMgr) AsyncDisband(string, string, func(int32, string)) {
func (this *guildMgr) AsyncDisband(accountId string, cb func(int32, string, []string)) {
}

View File

@ -433,6 +433,16 @@ func (this *player) CMSetMemberLevel(hdr *f5.MsgHdr, msg *cs.CMSetMemberLevel) {
}
func (this *player) CMDisband(hdr *f5.MsgHdr, msg *cs.CMDisband) {
rspMsg := new(cs.SMDisband)
GetGuildMgr().AsyncDisband(
this.GetAccountId(),
func (errCode int32, errMsg string, members []string) {
if errCode != 0 {
this.SendMsg(rspMsg.Err(errCode, errMsg))
return
}
this.SendMsg(rspMsg)
})
}
func (this *player) CMSetNotice(hdr *f5.MsgHdr, msg *cs.CMSetNotice) {