Browse Source

#2225

fix bug
tags/v1.22.9.2^2
chenyifan01 3 years ago
parent
commit
260ab09633
2 changed files with 1 additions and 1 deletions
  1. +0
    -0
      services/reward/cloudbrain_deduct.go
  2. +1
    -1
      services/reward/period_task.go

services/reward/cloubrain_deduct.go → services/reward/cloudbrain_deduct.go View File


+ 1
- 1
services/reward/period_task.go View File

@@ -77,7 +77,7 @@ func RunRewardTask(t models.RewardPeriodicTask, now time.Time) error {
log.Error("RunRewardTask. operator of reward type is not exist") log.Error("RunRewardTask. operator of reward type is not exist")
return errors.New("operator of reward type is not exist") return errors.New("operator of reward type is not exist")
} }
nextTime := t.NextExecuteTime
nextTime := timeutil.TimeStamp(int64(t.NextExecuteTime) + t.IntervalSeconds)
for i := 1; int64(i) <= n; i++ { for i := 1; int64(i) <= n; i++ {
err = operator.Operate(&models.RewardOperateContext{ err = operator.Operate(&models.RewardOperateContext{
SourceType: models.SourceTypeRunCloudbrainTask, SourceType: models.SourceTypeRunCloudbrainTask,


Loading…
Cancel
Save