diff --git a/db/db_day_luck_draw_setting.go b/db/db_day_luck_draw_setting.go index b4fc905..216d73a 100644 --- a/db/db_day_luck_draw_setting.go +++ b/db/db_day_luck_draw_setting.go @@ -14,10 +14,7 @@ func GetDayLuckDrawSetting(eg *xorm.Engine) *model.DayLuckDrawSetting { return nil } if get == false { - one, err := eg.InsertOne(&data) - if one == 0 || err != nil { - return nil - } + return nil } return &data }