From 5fc20082bf58ee215ffab3bbf7d9b14b799ac1d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sun, 1 Feb 2026 15:27:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=A0=81=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- code.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code.go b/code.go index b9804fd..1d1a4df 100644 --- a/code.go +++ b/code.go @@ -102,6 +102,12 @@ func MessageWithoutCode() { // // Date : 21:16 2022/6/25 func GetMessage(code any, defaultMessage ...string) string { + if nil == code { + return "" + } + if eCode, ok := code.(Code); ok { + code = eCode.Value + } var ( inputCodeInfo Code exist bool