From cd1091f53af63d6b9a95d035c7390026d8344277 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 12 Dec 2022 11:18:18 +0800 Subject: [PATCH] test --- db/db_day_luck_draw_setting.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 }