From 12882798da3d77e6ce41e05387dcf89750cd469f Mon Sep 17 00:00:00 2001 From: karldoenitz Date: Thu, 12 Dec 2024 12:20:19 +0800 Subject: [PATCH] bug fix #141 --- web/struct.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/struct.go b/web/struct.go index 9a0b06e..49ada1b 100644 --- a/web/struct.go +++ b/web/struct.go @@ -217,9 +217,9 @@ func (jsonParam *ReqParams) ToString() string { return "true" } return "false" + default: + return fmt.Sprintf("%v", jsonParam.Value) } - logger.Warning.Println("format to string failed") - return "" } // ToBool 将json中的参数值转换为bool