From 30afd2cbe12cc1ee84038c4fe81e0d3ab63fb25c Mon Sep 17 00:00:00 2001 From: yuxh Date: Tue, 19 Nov 2024 18:19:02 +0800 Subject: [PATCH] =?UTF-8?q?apk=20Version=20=E8=A7=A3=E6=9E=90=E5=BB=B6?= =?UTF-8?q?=E9=95=BF=E5=93=8D=E5=BA=94=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/oss/ApkVersion_get.go | 2 ++ services/oss/client_test.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/services/oss/ApkVersion_get.go b/services/oss/ApkVersion_get.go index 6082b67..82a1ca3 100644 --- a/services/oss/ApkVersion_get.go +++ b/services/oss/ApkVersion_get.go @@ -3,6 +3,7 @@ package oss import ( "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/requests" "golib.gaore.com/GaoreGo/gaore-common-sdk-go/sdk/responses" + "time" ) type GetApkVersionRequest struct { @@ -28,6 +29,7 @@ func CreateGetApkVersionRequest() (req *GetApkVersionRequest) { } req.InitWithApiInfo(HOST, VERSION, "/api/apk/version") req.Method = requests.POST + req.SetReadTimeout(30 * time.Second) return } diff --git a/services/oss/client_test.go b/services/oss/client_test.go index dcb8317..8b10ad6 100644 --- a/services/oss/client_test.go +++ b/services/oss/client_test.go @@ -72,7 +72,7 @@ func TestCreateInitMultipartUpload(t *testing.T) { func TestClient_GetApkVersion(t *testing.T) { req := CreateGetApkVersionRequest() - req.Filepath = "51c68615b8d21f9b72b02f48c400cb87.zip" + req.Filepath = "uploads/files/package/1f57ac9693f0593fc9073f366b1c1936.zip" client, err := NewClient() if err != nil { t.Error(err)