From 673f455bf3d8f34bd3ee97a6325af3117b7bda67 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Thu, 14 Nov 2024 19:15:08 +0800 Subject: [PATCH] update --- src/implement/sys_cfg_implement.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/implement/sys_cfg_implement.go b/src/implement/sys_cfg_implement.go index c9b964a..ba57b2f 100644 --- a/src/implement/sys_cfg_implement.go +++ b/src/implement/sys_cfg_implement.go @@ -66,7 +66,7 @@ func (s SysCfgDb) SysCfgInsert(key, val, memo string) bool { func (s SysCfgDb) SysCfgUpdate(key, val string) bool { cfg := model.SysCfg{Key: key, Val: val} - _, err := s.Db.Where("`k`=?", key).Cols("v").Update(&cfg) + _, err := s.Db.Where("`key`=?", key).Cols("val").Update(&cfg) if err != nil { zhios_order_relate_logx.Error(err) return false