diff --git a/db/db_day_luck_draw_setting.go b/db/db_day_luck_draw_setting.go index 4e49503..18e4fe9 100644 --- a/db/db_day_luck_draw_setting.go +++ b/db/db_day_luck_draw_setting.go @@ -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 } }