Browse Source

更新

master
huangjiajun 3 months ago
parent
commit
90f0b7fbf7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/db/implement/sys_cfg_implement.go

+ 1
- 1
app/db/implement/sys_cfg_implement.go View File

@@ -62,7 +62,7 @@ func (s SysCfgDb) SysCfgInsert(key, val, memo string) bool {

func (s SysCfgDb) SysCfgUpdate(key, val string) bool {
cfg := model.SysCfg{K: key, V: val}
_, err := s.Db.Where("`k`=?", key).Cols("val").Update(&cfg)
_, err := s.Db.Where("`k`=?", key).Cols("v").Update(&cfg)
if err != nil {
logx.Error(err)
return false


Loading…
Cancel
Save