Browse Source

update

tags/v0.0.5
shenjiachi 1 month ago
parent
commit
673f455bf3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/implement/sys_cfg_implement.go

+ 1
- 1
src/implement/sys_cfg_implement.go View File

@@ -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


Loading…
Cancel
Save