|
|
@@ -96,7 +96,7 @@ func SettlementPublicGiveActivityCoin(engine *xorm.Engine, masterId string, uid |
|
|
|
now := time.Now() |
|
|
|
if oneCirclesUserWatchRecords == nil { |
|
|
|
residueWatchAdNum := zhios_order_relate_utils.StrToInt(videoRewardSystem.RewardTotalNum) - 1 |
|
|
|
if residueWatchAdNum < 1 { |
|
|
|
if residueWatchAdNum < 0 { |
|
|
|
residueWatchAdNum = zhios_order_relate_utils.StrToInt(videoRewardSystem.RewardTotalNum) |
|
|
|
} |
|
|
|
_, err2 := db.OneCirclesUserWatchRecordsInsert(engine, &model.OneCirclesUserWatchRecords{ |
|
|
|