7
0

Compare commits

...

1 Commits

Author SHA1 Message Date
30afd2cbe1 apk Version 解析延长响应时间 2024-11-19 18:19:59 +08:00
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@ package oss
import ( import (
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests" "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests"
"golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses" "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses"
"time"
) )
type GetApkVersionRequest struct { type GetApkVersionRequest struct {
@ -28,6 +29,7 @@ func CreateGetApkVersionRequest() (req *GetApkVersionRequest) {
} }
req.InitWithApiInfo(HOST, VERSION, "/api/apk/version") req.InitWithApiInfo(HOST, VERSION, "/api/apk/version")
req.Method = requests.POST req.Method = requests.POST
req.SetReadTimeout(30 * time.Second)
return return
} }

View File

@ -72,7 +72,7 @@ func TestCreateInitMultipartUpload(t *testing.T) {
func TestClient_GetApkVersion(t *testing.T) { func TestClient_GetApkVersion(t *testing.T) {
req := CreateGetApkVersionRequest() req := CreateGetApkVersionRequest()
req.Filepath = "51c68615b8d21f9b72b02f48c400cb87.zip" req.Filepath = "uploads/files/package/1f57ac9693f0593fc9073f366b1c1936.zip"
client, err := NewClient() client, err := NewClient()
if err != nil { if err != nil {
t.Error(err) t.Error(err)