From e4dfa4aa1209633594f2ad4401bc003700af65fa Mon Sep 17 00:00:00 2001 From: "LinsRuis.HW1" Date: Wed, 5 Mar 2025 00:25:35 +0800 Subject: [PATCH] bugs --- core/comms/xorms.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/comms/xorms.go b/core/comms/xorms.go index 7603772..5bafbf1 100644 --- a/core/comms/xorms.go +++ b/core/comms/xorms.go @@ -19,8 +19,10 @@ func XormOneDb(db *gocloud.DBHelper, id, data interface{}, columns ...interface{ col := "id" if len(columns) > 0 { cols, ok := columns[0].(string) - if ok && cols != "" { - col = cols + if ok { + if cols != "" { + col = cols + } } else { ses = ses.Table(columns[0]) }