Commit 3f915cc5 authored by chenweijian's avatar chenweijian

黄钻买粉钻

parent 724d18d5
......@@ -45,4 +45,6 @@ const (
ActIpGetAwardTimes = "act:ipAwardTimes:%d:%d:%d:%s" // 一个ip在活动中的领奖次数 活动id:领奖类型:level:ip地址
ActImeiGetAwardTimes = "act:imeiAwardTimes:%d:%d:%d:%s" // 一个设备在活动中的领奖次数 活动id:领奖类型:level:设备号
ExchangePinkCostDiamond = "finance:exPinkDiamond:%s:%d" // 某天兑换粉钻所花费的黄钻 日期:用户id
)
......@@ -90,3 +90,7 @@ func GetActIpAwardTimesKey(actId uint64, awardType, level int, ip string) string
func GetActImeiAwardTimesKey(actId uint64, awardType, level int, device string) string {
return fmt.Sprintf(ActImeiGetAwardTimes, actId, awardType, level, device)
}
func GetExchangePinkCostDiamond(userId uint64) string {
return fmt.Sprintf(ExchangePinkCostDiamond, time.Now().Format(utils.DATE_FORMAT), userId)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment