Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-common
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujiebin
hilo-common
Commits
61017153
Commit
61017153
authored
Apr 28, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
活动
parent
b955c369
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
key.go
_const/rediskey/key.go
+21
-1
key_func.go
_const/rediskey/key_func.go
+7
-0
No files found.
_const/rediskey/key.go
View file @
61017153
...
...
@@ -17,5 +17,25 @@ const (
ConvertToTRTCNum
=
"group:covertTrtc:%s"
// 某天声网房间转换成trtc的数量
// 活动相关
TmpActUserActId
=
"act:tmp:%d:%d"
// 模板关联活动对应的用户参与的活动id
TmpActUserActId
=
"act:tmp:%d:%d"
// 模板关联活动对应的用户参与的活动id
ActChargeDiamond
=
"act:charge:%s:%d"
// 活动数据,今日充值钻石数,日期:用户id
TimesModGroupActivity
=
"addGroupActivity"
TimesLatGroupActivity
=
"groupTxId"
ActChargeGetPoint
=
"act:chargeGetPoint:%s:%d:%d"
// 活动数据,今日充值档位哪些用户获得过,日期:档位:用户id
ActIdChargeDiamond
=
"act:charge:%d:%s:%d"
// 活动数据,今日充值钻石数,活动id:日期:用户id
ActIdChargeGetPoint
=
"act:chargeGetPoint:%d:%s:%d:%d"
// 活动数据,今日充值档位哪些用户获得过,活动id:日期:档位:用户id
ActIdChargeCent
=
"act:charge:%d:%d"
// 活动数据,活动期间充值美分,活动id:用户id
ChargeDollar
=
"charge:%s:%d"
// 今日充值美元,日期:用户id
// 每月首次充值返利
MonthChargeTimes
=
"charge:times:%s:%d"
// 本月充值次数,月份:用户id
// 斋月活动
RamadanDailyTaskGet
=
"ramadan:dailyTask:%s:%d:%d"
// 斋月活动数据,某天的日常任务奖励是否已经领取,日期:模板活动id:用户id
RamadanGetDailyLottery
=
"ramadan:getDailyLottery:%s:%d:%d"
// 斋月活动数据,某天的充值获得抽奖次数是否已经完成,日期:模板活动id:用户id
// 开斋节活动
OpenRamadanSendGiftLeftDiamond
=
"act:openRamadan:diamond:%d:%d"
// 开斋节活动,剩余还没转换成积分的送礼钻石,活动id:用户id
)
_const/rediskey/key_func.go
View file @
61017153
...
...
@@ -50,3 +50,10 @@ func GetConvertToTRTCNum() string {
func
GetUserTmpActId
(
relateId
,
userId
uint64
)
string
{
return
fmt
.
Sprintf
(
TmpActUserActId
,
relateId
,
userId
)
}
func
GetActChargeDiamond
(
userId
,
actId
uint64
)
string
{
if
actId
>
500
{
return
fmt
.
Sprintf
(
ActIdChargeDiamond
,
actId
,
time
.
Now
()
.
Format
(
utils
.
DATE_FORMAT
),
userId
)
}
return
fmt
.
Sprintf
(
ActChargeDiamond
,
time
.
Now
()
.
Format
(
utils
.
DATE_FORMAT
),
userId
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment