From 548c97b2fa12d62ebb18915154c09e3c2f74b533 Mon Sep 17 00:00:00 2001 From: peerwise <2548604505@qq.com> Date: Fri, 19 May 2023 17:08:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF=E5=A4=84?= =?UTF-8?q?=E7=90=86=E7=9A=84PR?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/utils/base64.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/utils/base64.go b/pkg/utils/base64.go index 3f01c1488..d2ca115d6 100644 --- a/pkg/utils/base64.go +++ b/pkg/utils/base64.go @@ -6,7 +6,7 @@ func Base64Encode(data string) string { return base64.StdEncoding.EncodeToString([]byte(data)) } -func Base64Decode(data string) string { - decodedByte, _ := base64.StdEncoding.DecodeString(data) - return string(decodedByte) +func Base64Decode(data string) (string, error) { + decodedByte, err := base64.StdEncoding.DecodeString(data) + return string(decodedByte), err }