From fe096b5078592803e0f049aae420738d82f73c5f Mon Sep 17 00:00:00 2001 From: xc Date: Wed, 27 Aug 2025 11:46:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- aufs/core/setting.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/aufs/core/setting.go b/aufs/core/setting.go index ff9cb23..6f4cd6b 100644 --- a/aufs/core/setting.go +++ b/aufs/core/setting.go @@ -95,8 +95,13 @@ func Scedit(w http.ResponseWriter, r *http.Request) { if err != nil { return } + // fmt.Printf("sc: %v\n", sc) - fmt.Printf("sc: %v", sc) + // + scjson, _ := json.Marshal(sc) + fmt.Printf("scjson: %v\n", scjson) + + // fmt.Printf("sc: %v", sc) // 数据库初始化 // db.Init() @@ -105,7 +110,7 @@ func Scedit(w http.ResponseWriter, r *http.Request) { json.NewEncoder(w).Encode(map[string]string{ "message": "success", "status": "200", - "data": sc.Scname, + "data": string(scjson), // "data": "test string", })