Explorar el Código

update 一个圈圈

master
DengBiao hace 8 meses
padre
commit
57b7b6436a
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. +1
    -1
      rule/one_circles/md/one_circles_public_platoon.go
  2. +1
    -1
      rule/one_circles/one_circles_public_platoon_give_activty_coin.go

+ 1
- 1
rule/one_circles/md/one_circles_public_platoon.go Ver fichero

@@ -3,7 +3,7 @@ package md
type VideoRewardSystemStruct struct {
RewardValue string `json:"reward_value"` //奖励X个活跃积分
RewardTotalNum string `json:"reward_total_num"` //一共X个奖励视屏
IntervalMinutes string `json:"interval_minutes"` //间隔X分钟
IntervalMinutes string `json:"interval_minutes"` //间隔X
EachRoundHour string `json:"each_round_hour"` //每一轮X个小时
}



+ 1
- 1
rule/one_circles/one_circles_public_platoon_give_activty_coin.go Ver fichero

@@ -213,7 +213,7 @@ func SettlementPublicGiveActivityCoin(engine *xorm.Engine, masterId string, uid
watchAdDate = oneCirclesUserWatchRecords.NextWatchAdDate.Format("2006-01-02 15:04:05")
}
} else {
watchAdDate = time.Now().Add(time.Duration(zhios_order_relate_utils.StrToInt64(videoRewardSystem.IntervalMinutes)) * time.Minute).Format("2006-01-02 15:04:05")
watchAdDate = time.Now().Add(time.Duration(zhios_order_relate_utils.StrToInt64(videoRewardSystem.IntervalMinutes)) * time.Second).Format("2006-01-02 15:04:05")
//watchAdDate = oneCirclesUserWatchRecords.NextWatchAdDate.Format("2006-01-02 15:04:05")
}
cache.SetEx(redisKey, watchAdDate, 60*60*24) //TODO::默认缓存1小时


Cargando…
Cancelar
Guardar