Browse Source

test

tags/v1.0.3
huangjiajun 1 year ago
parent
commit
7e56862633
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      db/db_day_luck_draw_setting.go

+ 2
- 2
db/db_day_luck_draw_setting.go View File

@@ -27,8 +27,8 @@ func InsertDayLuckDrawSetting(eg *xorm.Engine, data *model.DayLuckDrawSetting) b
return false
}
} else {
update, err := eg.Where("id=?", data.Id).AllCols().Update(data)
if update == 0 || err != nil {
_, err := eg.Where("id=?", data.Id).AllCols().Update(data)
if err != nil {
return false
}
}


Loading…
Cancel
Save