diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 429c340..beb1148 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -5,7 +5,7 @@ - + - + @@ -34,6 +34,9 @@ + + @@ -59,4 +71,8 @@ + + false + true + \ No newline at end of file diff --git a/code.go b/code.go index 65e416d..338ce29 100644 --- a/code.go +++ b/code.go @@ -72,7 +72,7 @@ func getMessage(code interface{}) string { message, exist := codeTable[code] if !exist { // 无论是否开启 messageWithCode , 未知错误强行带 code - return fmt.Sprintf("未知错误【%v】", codeTable) + return fmt.Sprintf("未知错误【%v】", code) } if messageWithCode { if code == defaultSuccessCode {