Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
9aa5924b97 |
@ -26,11 +26,11 @@ func TestGetGameInfo(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
resp, err := client.GetGameInfo(CreateGetGameInfoByIdReq(8362, 1))
|
resp, err := client.GetGameInfo(CreateGetGameInfoByIdReq(797, 1))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
fmt.Println(resp.Code, resp.Msg, resp.Data)
|
fmt.Println(resp.Code, resp.Msg, resp.Data.GameHomeShortImage)
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestChannelInfo(t *testing.T) {
|
func TestChannelInfo(t *testing.T) {
|
||||||
@ -179,3 +179,18 @@ 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)
|
||||||
|
}
|
||||||
|
@ -264,29 +264,32 @@ func CreateGetGameCompanyResp() *GetGameCompanyResp {
|
|||||||
// ==== 获取游戏客户端版本配置
|
// ==== 获取游戏客户端版本配置
|
||||||
|
|
||||||
type GameVersion struct {
|
type GameVersion struct {
|
||||||
ID int `json:"id"`
|
ID int `json:"id"`
|
||||||
GameID int `json:"game_id"`
|
GameID int `json:"game_id"`
|
||||||
GameVersion string `json:"version"`
|
GameVersion string `json:"version"`
|
||||||
GameURL string `json:"url"`
|
GameURL string `json:"url"`
|
||||||
PayCallbackURL string `json:"pay_callback_url"`
|
PayCallbackURL string `json:"pay_callback_url"`
|
||||||
DomainURL string `json:"domain_url"`
|
DomainURL string `json:"domain_url"`
|
||||||
Status int `json:"status"`
|
Status int `json:"status"`
|
||||||
H5Version int `json:"h5_version"`
|
H5Version int `json:"h5_version"`
|
||||||
H5Status int `json:"h5_status"`
|
H5Status int `json:"h5_status"`
|
||||||
IsH5Logout int `json:"is_h5_logout"`
|
IsH5Logout int `json:"is_h5_logout"`
|
||||||
HideWindow int `json:"hidewindow"`
|
HideWindow int `json:"hidewindow"`
|
||||||
PayInfo PayInfo `json:"pay_display_info"`
|
PayInfo PayInfo `json:"pay_display_info"`
|
||||||
IsYsdk int `json:"is_ysdk"`
|
IsYsdk int `json:"is_ysdk"`
|
||||||
CheckVerified int `json:"check_verified"`
|
CheckVerified int `json:"check_verified"`
|
||||||
Company string `json:"company"`
|
Company string `json:"company"`
|
||||||
CompanyKf string `json:"company_kf"`
|
CompanyKf string `json:"company_kf"`
|
||||||
CompanyProto string `json:"company_proto"`
|
CompanyProto string `json:"company_proto"`
|
||||||
CompanySms string `json:"company_sms"`
|
CompanySms string `json:"company_sms"`
|
||||||
KfStatus int `json:"kf_status"`
|
KfStatus int `json:"kf_status"`
|
||||||
PopupTime int `json:"popup_time"`
|
PopupTime int `json:"popup_time"`
|
||||||
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user