From 7b904f4d5f3b0cf53687f8615368a8d14d0fb509 Mon Sep 17 00:00:00 2001 From: huangqz Date: Fri, 29 Aug 2025 18:31:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B8=A2=E4=BA=BA=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/game/client_test.go | 2 +- services/game/game.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/services/game/client_test.go b/services/game/client_test.go index 4235294..63a09b3 100644 --- a/services/game/client_test.go +++ b/services/game/client_test.go @@ -219,7 +219,7 @@ func TestKickUser(t *testing.T) { if err != nil { t.Error(err) } // CreateKickUserReq - getRealAuthBlackListReq := CreateKickUserReq(8677, 123, "8676", time.Now().Unix()) + getRealAuthBlackListReq := CreateKickUserReq(8677, "wzcqtest", "8676", time.Now().Unix()) kickUserResp, err := client.KickUser(getRealAuthBlackListReq) if err != nil { t.Error(err) diff --git a/services/game/game.go b/services/game/game.go index 07e4385..f6f2efc 100644 --- a/services/game/game.go +++ b/services/game/game.go @@ -447,8 +447,8 @@ func CreateGetGameRealAuthInfoResp() *GetGameRealAuthInfoResp { // 踢人下线 type KickUserReq struct { *requests.RpcRequest - GameId int64 `position:"Body" field:"game_id" default:"-" ` Uid int64 `position:"Body" field:"uid" default:"-" ` + GameSign string `position:"Body" field:"game_sign" default:"-" ` ServerSign string `position:"Body" field:"server_sign" default:"-" ` Time int64 `position:"Body" field:"time" default:"-" ` } @@ -470,11 +470,11 @@ type KickUserResp struct { Data KickUserRespData `json:"data"` } -func CreateKickUserReq(gameId int64, uid int64, serverSign string, time int64) *KickUserReq { +func CreateKickUserReq(uid int64, gameSign string, serverSign string, time int64) *KickUserReq { req := &KickUserReq{ RpcRequest: &requests.RpcRequest{}, - GameId: gameId, Uid: uid, + GameSign: gameSign, ServerSign: serverSign, Time: time, }