From ca151fbc1f06af2fe1c1f513c037a6fa35ea19f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Fri, 7 Feb 2025 17:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=B7=E6=B1=82=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E9=BB=98=E8=AE=A4=E8=BF=94=E5=9B=9E=E6=96=87=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code.go b/code.go index 45dd061..4c45f7c 100644 --- a/code.go +++ b/code.go @@ -118,6 +118,9 @@ func MessageWithoutCode() { func getMessage(code any, defaultMessage ...string) string { inputCodeInfo, exist := codeTable[code] if !exist { + if fmt.Sprintf("%v", code) == fmt.Sprintf("%v", defaultSuccessCode) { + return "请求成功" + } if len(defaultMessage) > 0 && len(defaultMessage[0]) > 0 { return defaultMessage[0] }