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, }