This commit is contained in:
aozhiwei 2024-04-09 11:17:20 +08:00
parent f1bc885898
commit ab8385e055

View File

@ -459,6 +459,17 @@ func (this *player) CMApprove(hdr *f5.MsgHdr, msg *cs.CMApprove) {
}
func (this *player) CMReject(hdr *f5.MsgHdr, msg *cs.CMReject) {
rspMsg := new(cs.SMReject)
GetGuildMgr().AsyncRejectApply(
this.GetAccountId(),
msg.GetApplicantAccountId(),
func (errCode int32, errMsg string) {
if errCode != 0 {
this.SendMsg(rspMsg.Err(errCode, errMsg))
return
}
this.SendMsg(rspMsg)
})
}
func (this *player) CMLeaveGuild(hdr *f5.MsgHdr, msg *cs.CMLeaveGuild) {