From c02bd228d64a0ca09b18483454b38712cfe78e10 Mon Sep 17 00:00:00 2001 From: "LinsRuis.HW1" Date: Tue, 4 Mar 2025 21:39:35 +0800 Subject: [PATCH] +.. --- core/comms/xorms.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/comms/xorms.go b/core/comms/xorms.go index 98fe50c..3f96eaf 100644 --- a/core/comms/xorms.go +++ b/core/comms/xorms.go @@ -17,7 +17,7 @@ func XormOneDb(db *gocloud.DBHelper, id, data interface{}, columns ...interface{ col := "id" if len(columns) > 0 { cols, ok := columns[0].(string) - if ok { + if ok && cols != "" { col = cols } else { ses = ses.Table(columns[0])