From 1fb24f6e50ebcdeb5f5d17cb751f6bdaa08bca39 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 23 Jul 2024 18:14:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rule/happy_orchard/happy_orchard_give_water.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/rule/happy_orchard/happy_orchard_give_water.go b/rule/happy_orchard/happy_orchard_give_water.go index 8692397..377133f 100644 --- a/rule/happy_orchard/happy_orchard_give_water.go +++ b/rule/happy_orchard/happy_orchard_give_water.go @@ -29,15 +29,6 @@ func HappyOrchardGiveWater(eg *xorm.Engine, masterId string, uid int, isMultiple err = errors.New("视屏奖励机制设置未完全!") return } - var rewardSystem []*md2.HappyOrchardVideoRewardSystemStruct - err = json.Unmarshal([]byte(base.VideoRewardSystem), &rewardSystem) - if err != nil { - return - } - if len(rewardSystem) == 0 { - err = errors.New("未设置奖励机制!") - return - } //增加 one_circles_user_watch_records 记录 NewHappyOrchardUserWatchRecordsDb := implement.NewHappyOrchardUserWatchRecordsDb(eg) UserWatchRecords, _ := NewHappyOrchardUserWatchRecordsDb.GetHappyOrchardUserWatchRecords(uid)