Commit 100ebb9d authored by chenweijian's avatar chenweijian

开斋节活动

parent 2edfa2a3
...@@ -5,11 +5,12 @@ const ( ...@@ -5,11 +5,12 @@ const (
SlotFruitWeeklyDailyTask = "act:slotFruitWeeklyDailyTask:%s:%d" // slot周活动、水果机周活动,每日任务是否领取(共用同一个key,两个活动的每日任务福利只能领取一次)2006-01:用户id SlotFruitWeeklyDailyTask = "act:slotFruitWeeklyDailyTask:%s:%d" // slot周活动、水果机周活动,每日任务是否领取(共用同一个key,两个活动的每日任务福利只能领取一次)2006-01:用户id
// 开斋节活动 // 开斋节活动
OpenRamadanChargeAwardTimes = "act:openRamadan:chargeAward:%d:%d" // 开斋节活动,充值奖励领取次数,活动id:用户id OpenRamadanChargeAwardTimes = "act:openRamadan:chargeAward:%d:%d" // 开斋节活动,充值奖励领取次数,活动id:用户id
OpenRamadanTaskTimesMic = "act:openRamadan:mic:%d:%s:%d" // 开斋节活动,上麦奖励领取次数,活动id:日期:用户id OpenRamadanTaskTimesMic = "act:openRamadan:mic:%d:%s:%d" // 开斋节活动,上麦奖励领取次数,活动id:日期:用户id
OpenRamadanTaskTimesLudo = "act:openRamadan:ludo:%d:%s:%d" // 开斋节活动,玩ludo奖励领取次数,活动id:日期:用户id OpenRamadanTaskTimesLudo = "act:openRamadan:ludo:%d:%s:%d" // 开斋节活动,玩ludo奖励领取次数,活动id:日期:用户id
OpenRamadanTaskTimesFruit = "act:openRamadan:fruit:%d:%s:%d" // 开斋节活动,玩水果机游戏奖励领取次数,活动id:日期:用户id OpenRamadanTaskTimesFruit = "act:openRamadan:fruit:%d:%s:%d" // 开斋节活动,玩水果机游戏奖励领取次数,活动id:日期:用户id
OpenRamadanTaskTimesSlot = "act:openRamadan:slot:%d:%s:%d" // 开斋节活动,玩slot游戏奖励领取次数,活动id:日期:用户id OpenRamadanTaskTimesSlot = "act:openRamadan:slot:%d:%s:%d" // 开斋节活动,玩slot游戏奖励领取次数,活动id:日期:用户id
OpenRamadanTaskTimesEnter = "act:openRamadan:enter:%d:%s:%d" // 开斋节活动,穿指定座驾进入不同房间 奖励领取次数,活动id:日期:用户id OpenRamadanTaskTimesEnter = "act:openRamadan:enter:%d:%s:%d" // 开斋节活动,穿指定座驾进入不同房间 奖励领取次数,活动id:日期:用户id
OpenRamadanTaskTimesRoom = "act:openRamadan:room:%d:%s:%d:%d" // 开斋节活动,今日进入某个房间的次数,活动id:日期:用户id:房间id OpenRamadanTaskTimesRoom = "act:openRamadan:room:%d:%s:%d:%d" // 开斋节活动,今日进入某个房间的次数,活动id:日期:用户id:房间id
OpenRamadanFruitBet = "act:openRamadan:fruitBet:%d:%s:%d:%d" // 开斋节活动,水果机某个轮次下注次数记录,活动id:日期:用户id:轮次
) )
...@@ -38,3 +38,7 @@ func GetOpenRamadanTaskTimesEnter(actId, userId uint64) string { ...@@ -38,3 +38,7 @@ func GetOpenRamadanTaskTimesEnter(actId, userId uint64) string {
func GetOpenRamadanTaskTimesRoom(actId, userId, roomId uint64) string { func GetOpenRamadanTaskTimesRoom(actId, userId, roomId uint64) string {
return fmt.Sprintf(OpenRamadanTaskTimesRoom, actId, time.Now().Format(utils.DATE_FORMAT), userId, roomId) return fmt.Sprintf(OpenRamadanTaskTimesRoom, actId, time.Now().Format(utils.DATE_FORMAT), userId, roomId)
} }
func GetOpenRamadanFruitBet(actId, userId uint64, round uint, date string) string {
return fmt.Sprintf(OpenRamadanFruitBet, actId, date, userId, round)
}
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