6
0

Compare commits

..

No commits in common. "master" and "v1.2.5" have entirely different histories.

2 changed files with 25 additions and 43 deletions

View File

@ -26,11 +26,11 @@ func TestGetGameInfo(t *testing.T) {
if err != nil { if err != nil {
panic(err) panic(err)
} }
resp, err := client.GetGameInfo(CreateGetGameInfoByIdReq(797, 1)) resp, err := client.GetGameInfo(CreateGetGameInfoByIdReq(8362, 1))
if err != nil { if err != nil {
panic(err) panic(err)
} }
fmt.Println(resp.Code, resp.Msg, resp.Data.GameHomeShortImage) fmt.Println(resp.Code, resp.Msg, resp.Data)
} }
func TestChannelInfo(t *testing.T) { func TestChannelInfo(t *testing.T) {
@ -179,18 +179,3 @@ func TestGetGameRealAuthInfo(t *testing.T) {
} }
t.Log(isBlockOutIos) t.Log(isBlockOutIos)
} }
func TestGetGameVersion(t *testing.T) {
client, err := NewClient()
if err != nil {
t.Error(err)
return
}
req := CreateGetGameVersionReq(8071, "1.0.6")
resp, err := client.GetGameVersion(req)
if err != nil {
t.Error(err)
return
}
t.Log(resp)
}

View File

@ -287,9 +287,6 @@ type GameVersion struct {
ExtData map[string]any `json:"ext_data"` ExtData map[string]any `json:"ext_data"`
VersionStatus int `json:"version_status"` VersionStatus int `json:"version_status"`
VersionTime int `json:"version_time"` VersionTime int `json:"version_time"`
RequestDomain string `json:"request_domain"`
SpareRequestDomain string `json:"spare_request_domain"`
OtherRequestDomain string `json:"other_request_domain"`
} }
type GetGameVersionReq struct { type GetGameVersionReq struct {