diff --git a/_const/rediskey/key.go b/_const/rediskey/key.go index 8172ad0ab5bf4c44cc4d04a5e4b0a07a2eea9584..9ddf66078079b35f800238f64da550521048d8d3 100644 --- a/_const/rediskey/key.go +++ b/_const/rediskey/key.go @@ -43,6 +43,6 @@ const ( // 定时任务的互斥锁 cronLock = "cronLock:{subKey}" - ActIpGetAwardTimes = "act:ipAwardTimes:%d:%d:%s" // 一个ip在活动中的领奖次数 活动id:领奖类型:ip地址 - ActDeviceGetAwardTimes = "act:deviceAwardTimes:%d:%d:%s" // 一个设备在活动中的领奖次数 活动id:领奖类型:设备号 + ActIpGetAwardTimes = "act:ipAwardTimes:%d:%d:%s" // 一个ip在活动中的领奖次数 活动id:领奖类型:ip地址 + ActImeiGetAwardTimes = "act:imeiAwardTimes:%d:%d:%s" // 一个设备在活动中的领奖次数 活动id:领奖类型:设备号 ) diff --git a/_const/rediskey/key_func.go b/_const/rediskey/key_func.go index 150cfa39e62e72727985d7813deaf8fba0fd0e66..c40d669819ffab609bcd95e3dad621f0ec6f9921 100644 --- a/_const/rediskey/key_func.go +++ b/_const/rediskey/key_func.go @@ -83,10 +83,10 @@ func GetCronLockKey(subKey string) string { return strings.Replace(cronLock, "{subKey}", subKey, -1) } -func GetActIpGetAwardTimesKey(actId uint64, awardType int, ip string) string { +func GetActIpAwardTimesKey(actId uint64, awardType int, ip string) string { return fmt.Sprintf(ActIpGetAwardTimes, actId, awardType, ip) } -func GetActDeviceGetAwardTimesKey(actId uint64, awardType int, device string) string { - return fmt.Sprintf(ActDeviceGetAwardTimes, actId, awardType, device) +func GetActImeiAwardTimesKey(actId uint64, awardType int, device string) string { + return fmt.Sprintf(ActImeiGetAwardTimes, actId, awardType, device) }