This commit is contained in:
aozhiwei 2024-04-08 21:00:02 +08:00
parent 4ef2f021b9
commit ae97e3c59e

View File

@ -411,6 +411,18 @@ func (this *player) CMCreateGuild(hdr *f5.MsgHdr, msg *cs.CMCreateGuild) {
}
func (this *player) CMApplyToGuild(hdr *f5.MsgHdr, msg *cs.CMApplyToGuild) {
rspMsg := new(cs.SMApplyToGuild)
GetGuildMgr().AsyncApplyJoin(
this.GetAccountId(),
q5.ToString(msg.GetGuildId()),
func (errCode int32, errMsg string) {
if errCode != 0 {
this.SendMsg(rspMsg.Err(errCode, errMsg))
return
}
this.SendMsg(rspMsg)
return
})
}
func (this *player) CMApplyList(hdr *f5.MsgHdr, msg *cs.CMApplyList) {