Compare commits
	
		
			3 Commits
		
	
	
		
			66ee953f5f
			...
			96132c6cba
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					96132c6cba | ||
| 
						 | 
					5e4a2468a7 | ||
| 9aa5924b97 | 
@ -66,7 +66,7 @@ type GetFaqDetailResponse struct {
 | 
			
		||||
	*responses.BaseResponse
 | 
			
		||||
	Code int        `json:"code"`
 | 
			
		||||
	Msg  string     `json:"msg"`
 | 
			
		||||
	Data FaqDetail `json:"data"`
 | 
			
		||||
	Data *FaqDetail `json:"data"`
 | 
			
		||||
}
 | 
			
		||||
type FaqDetailRequest struct {
 | 
			
		||||
	Id int64 `json:"id"`
 | 
			
		||||
 | 
			
		||||
@ -26,11 +26,11 @@ func TestGetGameInfo(t *testing.T) {
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		panic(err)
 | 
			
		||||
	}
 | 
			
		||||
	resp, err := client.GetGameInfo(CreateGetGameInfoByIdReq(8362, 1))
 | 
			
		||||
	resp, err := client.GetGameInfo(CreateGetGameInfoByIdReq(797, 1))
 | 
			
		||||
	if err != nil {
 | 
			
		||||
		panic(err)
 | 
			
		||||
	}
 | 
			
		||||
	fmt.Println(resp.Code, resp.Msg, resp.Data)
 | 
			
		||||
	fmt.Println(resp.Code, resp.Msg, resp.Data.GameHomeShortImage)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func TestChannelInfo(t *testing.T) {
 | 
			
		||||
@ -179,3 +179,18 @@ func TestGetGameRealAuthInfo(t *testing.T) {
 | 
			
		||||
	}
 | 
			
		||||
	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)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -287,6 +287,9 @@ type GameVersion struct {
 | 
			
		||||
	ExtData            map[string]any `json:"ext_data"`
 | 
			
		||||
	VersionStatus      int            `json:"version_status"`
 | 
			
		||||
	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 {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user