Commit 8322edd2 authored by chenweijian's avatar chenweijian

活动

parent afda3df8
......@@ -15,4 +15,7 @@ const (
OpenRamadanFruitBet = "act:openRamadan:fruitBet:%d:%s:%d:%d" // 开斋节活动,水果机某个轮次下注次数记录,活动id:日期:用户id:轮次
ConvertToTRTCNum = "group:covertTrtc:%s" // 某天声网房间转换成trtc的数量
// 活动相关
TmpActUserActId = "act:tmp:%d:%d" // 模板关联活动对应的用户参与的活动id
)
......@@ -46,3 +46,7 @@ func GetOpenRamadanFruitBet(actId, userId uint64, round uint, date string) strin
func GetConvertToTRTCNum() string {
return fmt.Sprintf(ConvertToTRTCNum, time.Now().Format(utils.DATE_FORMAT))
}
func GetUserTmpActId(relateId, userId uint64) string {
return fmt.Sprintf(TmpActUserActId, relateId, 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