Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
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-group
Commits
c90646fe
Commit
c90646fe
authored
Aug 24, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
group support
parent
bf932f16
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
send_gift_redis.go
cron/gift_cron/send_gift_redis.go
+3
-3
group_support.go
cron/group_cron/group_support.go
+2
-2
No files found.
cron/gift_cron/send_gift_redis.go
View file @
c90646fe
...
@@ -98,9 +98,9 @@ func groupPowerStar(model *domain.Model, sendGiftEvent *gift_ev.SendGiftEvent) {
...
@@ -98,9 +98,9 @@ func groupPowerStar(model *domain.Model, sendGiftEvent *gift_ev.SendGiftEvent) {
// 群组扶持增加流水数据
// 群组扶持增加流水数据
func
groupSupportAddConsume
(
model
*
domain
.
Model
,
sendGiftEvent
*
gift_ev
.
SendGiftEvent
)
{
func
groupSupportAddConsume
(
model
*
domain
.
Model
,
sendGiftEvent
*
gift_ev
.
SendGiftEvent
)
{
//if time.Now().Unix() <= 1692964800 { // cwj----
if
time
.
Now
()
.
Unix
()
<=
1692843600
{
// return nil
return
//
}
}
model
.
Log
.
Infof
(
"groupSupportAddConsume UserId:%d, sendGiftEvent:%+v"
,
sendGiftEvent
.
SendUserId
,
sendGiftEvent
)
model
.
Log
.
Infof
(
"groupSupportAddConsume UserId:%d, sendGiftEvent:%+v"
,
sendGiftEvent
.
SendUserId
,
sendGiftEvent
)
if
sendGiftEvent
.
SceneType
!=
gift_e
.
GroupSceneType
||
sendGiftEvent
.
SceneUid
==
""
{
if
sendGiftEvent
.
SceneType
!=
gift_e
.
GroupSceneType
||
sendGiftEvent
.
SceneUid
==
""
{
model
.
Log
.
Infof
(
"groupSupportAddConsume UserId:%d, sendGiftEvent:%+v"
,
sendGiftEvent
.
SendUserId
,
sendGiftEvent
)
model
.
Log
.
Infof
(
"groupSupportAddConsume UserId:%d, sendGiftEvent:%+v"
,
sendGiftEvent
.
SendUserId
,
sendGiftEvent
)
...
...
cron/group_cron/group_support.go
View file @
c90646fe
...
@@ -97,7 +97,7 @@ func CalcGroupSupport_OldData() {
...
@@ -97,7 +97,7 @@ func CalcGroupSupport_OldData() {
return
return
}
}
c
:=
cron
.
New
()
c
:=
cron
.
New
()
spec
:=
"0
55 9
24 8 ?"
spec
:=
"0
30 10
24 8 ?"
_
=
c
.
AddFunc
(
spec
,
func
()
{
_
=
c
.
AddFunc
(
spec
,
func
()
{
defer
utils
.
CheckGoPanic
()
defer
utils
.
CheckGoPanic
()
var
model
=
domain
.
CreateModelNil
()
var
model
=
domain
.
CreateModelNil
()
...
@@ -105,7 +105,7 @@ func CalcGroupSupport_OldData() {
...
@@ -105,7 +105,7 @@ func CalcGroupSupport_OldData() {
model
.
Log
.
Infof
(
"CalcGroupSupport_OldData start"
)
model
.
Log
.
Infof
(
"CalcGroupSupport_OldData start"
)
beginTime
,
_
,
period
:=
group_m
.
GetSupportLevelTime
(
time
.
Now
())
beginTime
,
_
,
period
:=
group_m
.
GetSupportLevelTime
(
time
.
Now
())
endTime
:=
time
.
Unix
(
1692
964800
,
0
)
// cwj----
endTime
:=
time
.
Unix
(
1692
843600
,
0
)
g
:=
gift_m
.
GiftOperate
{
SceneType
:
gift_e
.
GroupSceneType
,
Model
:
model
}
g
:=
gift_m
.
GiftOperate
{
SceneType
:
gift_e
.
GroupSceneType
,
Model
:
model
}
records
,
err
:=
g
.
BatchGetConsumeByRange
(
beginTime
,
endTime
)
records
,
err
:=
g
.
BatchGetConsumeByRange
(
beginTime
,
endTime
)
...
...
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