Browse Source

#2225

update
tags/v1.22.9.2^2
chenyifan01 3 years ago
parent
commit
6410dba541
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/redis/redis_key/reward_redis_key.go

+ 3
- 1
modules/redis/redis_key/reward_redis_key.go View File

@@ -1,7 +1,9 @@
package redis_key

import (
"code.gitea.io/gitea/modules/setting"
"fmt"
"strings"
)

const REWARD_REDIS_PREFIX = "reward"
@@ -11,7 +13,7 @@ func RewardOperateLock(requestId string, sourceType string, operateType string)
}

func RewardOperateNotification() string {
return KeyJoin(REWARD_REDIS_PREFIX, "operate", "notification")
return KeyJoin(REWARD_REDIS_PREFIX, "operate", strings.ReplaceAll(setting.AppURL, "/", ""), "notification")
}

func RewardTaskRunningLock(taskId int64) string {


Loading…
Cancel
Save