|
|
@@ -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) |
|
|
|