Browse Source

#2225

update
tags/v1.22.9.2^2
chenyifan01 3 years ago
parent
commit
252064d410
2 changed files with 1 additions and 5 deletions
  1. +0
    -4
      services/reward/notify.go
  2. +1
    -1
      services/reward/operator.go

+ 0
- 4
services/reward/notify.go View File

@@ -15,10 +15,6 @@ func NotifyRewardOperation(userId, amount int64, sourceType models.SourceType, r
switch sourceType {
case models.SourceTypeRunCloudbrainTask:
return
case models.SourceTypeAdminOperate:
if operateType == models.OperateTypeDecrease {
return
}
}
data := &models.UserRewardOperationRedis{
UserId: userId,


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

@@ -86,7 +86,7 @@ func Operate(ctx *models.RewardOperateContext) error {
}

UpdateRewardRecordToFinalStatus(ctx.SourceType.Name(), ctx.RequestId, models.OperateStatusSucceeded)
NotifyRewardOperation(ctx.TargetUserId, ctx.Reward.Amount, ctx.Reward.Type, ctx.OperateType)
NotifyRewardOperation(ctx.TargetUserId, ctx.Reward.Amount, ctx.SourceType, ctx.Reward.Type, ctx.OperateType)
return nil
}



Loading…
Cancel
Save