From 626fe8c4cd0d278aa85fefc62df058b8d01c71c3 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 20 Apr 2024 15:21:16 +0800 Subject: [PATCH] 1 --- server/matchserver/common/types.go | 9 +++++++++ server/matchserver/team/team.go | 4 +++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/server/matchserver/common/types.go b/server/matchserver/common/types.go index cd9f6130..92b4ff51 100644 --- a/server/matchserver/common/types.go +++ b/server/matchserver/common/types.go @@ -71,6 +71,15 @@ type MapInfoRsp struct { //NeedTicket int32 `json:"need_ticket"` } +type UserQueryStatusRsp struct { + Errcode int `json:"errcode"` + Errmsg string `json:"errmsg"` + Users []struct { + AccountId string `json:"account_id"` + Battling string `json:"battling"` + } +} + type UpdateBattleInfoRsp struct { Errcode int `json:"errcode"` Errmsg string `json:"errmsg"` diff --git a/server/matchserver/team/team.go b/server/matchserver/team/team.go index 6c0f0dc9..37dc1823 100644 --- a/server/matchserver/team/team.go +++ b/server/matchserver/team/team.go @@ -627,9 +627,11 @@ func (this *team) checkMemberState() { } url := fmt.Sprintf("%s/webapp/index.php", mt.Table.Config.GetById(0).GetFriendapiUrl()) - f5.GetHttpCliMgr().SendJsStyleRequest( + rspObj := new(common.UserQueryStatusRsp) + f5.GetHttpCliMgr().SendJsStyleJsonRspRequest( url, params, + rspObj, func(rsp f5.HttpCliResponse) { sending = false })