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
5feda91b
Commit
5feda91b
authored
Mar 10, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
todo 看看需要移出去外面,或者发一个事件?
parent
281d866a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
17 deletions
+31
-17
msg.go
_const/enum/msg_e/msg.go
+19
-17
group_grade.go
domain/model/groupPower_m/group_grade.go
+12
-0
No files found.
_const/enum/msg_e/msg.go
View file @
5feda91b
...
...
@@ -114,23 +114,25 @@ const (
//也门活动通知
ActivityTriggerYemen
=
27
//月充值活动通知
ActivityTriggerMonthPay
=
28
FruitTycoonAward
=
29
// 水果大亨获奖
LuckyboxRecycle
=
30
//幸运盒子回收
HlTemp1
=
31
//产品黄蕾,2022/06/29 临时要求发给某人的小助手消息
HLTemp2
=
32
//问卷调查
NewUserInviteAuditPassed
=
33
// 新用户奖励活动审核通过
NewUserInviteAuditFailed
=
34
// 新用户奖励活动审核不通过
NewUserInviterAward
=
35
// 新用户奖励活动邀请成功数达标
PowerSupportSalary
=
36
// 势力扶持工资领取 提醒
CountryStarOrdinaryAward
=
37
// 国家之星瓜分奖提醒
GroupActivityRewardMsg
=
38
// 群组活动钻石奖励提醒
TemplateActAwardMsg
=
39
// 通用模板活动奖励提醒
TemplateSmsCode
=
40
// 通用模板活动奖励提醒
NewUserRegisterPush1
=
44
// 首次充值免费获得永久充值勋章!累积充值$50可申请特殊ID:ABBABB!
NewUserRegisterPush2
=
45
// 邀请朋友来Hilo,最高获得100,000钻石奖励!
NewUserRegisterPush3
=
46
// 举办首个活动,领取10,000钻石和35%奖杯奖励!
ActFruitPutRankAward
=
47
// 水果机投入排行榜提醒领奖
ActivityTriggerMonthPay
=
28
FruitTycoonAward
=
29
// 水果大亨获奖
LuckyboxRecycle
=
30
//幸运盒子回收
HlTemp1
=
31
//产品黄蕾,2022/06/29 临时要求发给某人的小助手消息
HLTemp2
=
32
//问卷调查
NewUserInviteAuditPassed
=
33
// 新用户奖励活动审核通过
NewUserInviteAuditFailed
=
34
// 新用户奖励活动审核不通过
NewUserInviterAward
=
35
// 新用户奖励活动邀请成功数达标
PowerSupportSalary
=
36
// 势力扶持工资领取 提醒
CountryStarOrdinaryAward
=
37
// 国家之星瓜分奖提醒
GroupActivityRewardMsg
=
38
// 群组活动钻石奖励提醒
TemplateActAwardMsg
=
39
// 通用模板活动奖励提醒
TemplateSmsCode
=
40
// 通用模板活动奖励提醒
NewUserRegisterPush1
=
44
// 首次充值免费获得永久充值勋章!累积充值$50可申请特殊ID:ABBABB!
NewUserRegisterPush2
=
45
// 邀请朋友来Hilo,最高获得100,000钻石奖励!
NewUserRegisterPush3
=
46
// 举办首个活动,领取10,000钻石和35%奖杯奖励!
ActFruitPutRankAward
=
47
// 水果机投入排行榜提醒领奖
ActGroupPowerUpgrade
=
48
// 家族升级
ActGroupPowerExpireNotice
=
49
// 家族等级即将过期(每月20日)
)
type
MsgSysUserType
=
mysql
.
Type
...
...
domain/model/groupPower_m/group_grade.go
View file @
5feda91b
...
...
@@ -8,6 +8,8 @@ import (
"gorm.io/gorm"
"gorm.io/gorm/clause"
"hilo-group/_const/enum/groupPower_e"
"hilo-group/_const/enum/msg_e"
"hilo-group/domain/model/msg_m"
"time"
)
...
...
@@ -123,6 +125,16 @@ func IncrGroupPowerExp(txModel *domain.Model, groupPowerId mysql.ID, exp mysql.N
if
err
=
txModel
.
DB
()
.
Model
(
GroupPowerGrade
{})
.
Where
(
"group_power_id = ?"
,
latestGrade
.
GroupPowerId
)
.
UpdateColumns
(
updateAttrs
)
.
Error
;
err
!=
nil
{
return
err
}
// 升级发消息 // todo 看看需要移出去外面,或者发一个事件?
record1
:=
msg_m
.
NewUserRecord
(
txModel
,
4522
,
msg_e
.
ActGroupPowerUpgrade
,
""
,
0
,
""
,
""
,
""
,
""
,
""
)
_
=
record1
.
Persistent
()
return
nil
// 不加离线推送
//user, err := user_m.GetUser(model, event.UserId)
//if err != nil {
// return err
//}
//return SendEmasMsgAssistant(model, user.ExternalId, user.DeviceType)
}
break
}
...
...
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