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
16b757e5
Commit
16b757e5
authored
Mar 23, 2023
by
chenweijian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
发送小助手消息
parent
b39d8821
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
msg.go
_const/enum/msg_e/msg.go
+1
-0
3.5.0.sql
mysql/3.5.0.sql
+16
-1
group_power.go
route/group_power_r/group_power.go
+6
-0
No files found.
_const/enum/msg_e/msg.go
View file @
16b757e5
...
...
@@ -133,6 +133,7 @@ const (
ActFruitPutRankAward
=
47
// 水果机投入排行榜提醒领奖
GroupPowerUpgrade
=
48
// 家族升级
GroupPowerExpireNotice
=
49
// 家族等级即将过期(每月20日)
GroupPowerWelcomeJoin
=
53
// 欢迎加入家族
)
type
MsgSysUserType
=
mysql
.
Type
...
...
mysql/3.5.0.sql
View file @
16b757e5
...
...
@@ -56,4 +56,19 @@ VALUES (169, 'zh', '白银等级才可以修改'),
(
169
,
'ca'
,
'Solo se puede modificar en el nivel plata.'
),
(
169
,
'hi'
,
'केवल चांदी के स्तर पर संशोधित किया जा सकता है'
),
(
169
,
'vi'
,
'Chỉ có thể được sửa đổi ở cấp độ bạc'
),
(
169
,
'ur'
,
'صرف چاندی کی سطح پر نظر ثانی کی جا سکتی ہے'
);
\ No newline at end of file
(
169
,
'ur'
,
'صرف چاندی کی سطح پر نظر ثانی کی جا سکتی ہے'
);
INSERT
INTO
hilo
.
res_msg_translate
(
`language`
,
title
,
content
,
icon_url
,
msg_type
,
`type`
,
action_type
,
action_url
)
VALUES
(
'zh'
,
''
,
'你已加入家族,和朋友们一起快乐玩耍吧!'
,
''
,
1
,
53
,
0
,
''
),
(
'en'
,
''
,
"You have joined the family, let's have fun with your friends!"
,
''
,
1
,
53
,
0
,
''
),
(
'ar'
,
''
,
'لقد انضممت إلى العائلة ، فلنستمتع مع أصدقائك!'
,
''
,
1
,
53
,
0
,
''
),
(
'tr'
,
''
,
'Aileye katıldınız, arkadaşlarınızla eğlenelim!'
,
''
,
1
,
53
,
0
,
''
),
(
'id'
,
''
,
'Anda telah bergabung dengan keluarga, mari bersenang-senang dengan teman-teman Anda!'
,
''
,
1
,
53
,
0
,
''
),
(
'ru'
,
''
,
'Вы присоединились к семье, давайте веселиться с друзьями!'
,
''
,
1
,
53
,
0
,
''
),
(
'ko'
,
''
,
'당신은 가족에 합류했습니다. 친구들과 즐거운 시간을 보내십시오!'
,
''
,
1
,
53
,
0
,
''
),
(
'pt'
,
''
,
'Você se juntou à família, vamos nos divertir com seus amigos!'
,
''
,
1
,
53
,
0
,
''
),
(
'th'
,
''
,
'คุณได้เข้าร่วมครอบครัวแล้ว มาสนุกกับเพื่อนๆ กันเถอะ!'
,
''
,
1
,
53
,
0
,
''
),
(
'ca'
,
''
,
'Te has unido a la familia, ¡diviértete con tus amigos!'
,
''
,
1
,
53
,
0
,
''
),
(
'hi'
,
''
,
'आप परिवार में शामिल हो गए हैं, आइए अपने दोस्तों के साथ मस्ती करें!'
,
''
,
1
,
53
,
0
,
''
),
(
'vi'
,
''
,
'Bạn đã tham gia gia đình, hãy vui vẻ với bạn bè của bạn!'
,
''
,
1
,
53
,
0
,
''
),
(
'ur'
,
''
,
'آپ خاندان میں شامل ہو گئے ہیں، آئیے اپنے دوستوں کے ساتھ مزے کریں!'
,
''
,
1
,
53
,
0
,
''
);
route/group_power_r/group_power.go
View file @
16b757e5
...
...
@@ -10,6 +10,7 @@ import (
"git.hilo.cn/hilo-common/resource/redisCli"
"git.hilo.cn/hilo-common/sdk/aws"
"git.hilo.cn/hilo-common/sdk/tencentyun"
"git.hilo.cn/hilo-common/txop/msg"
"git.hilo.cn/hilo-common/utils"
"github.com/gin-gonic/gin"
"github.com/jinzhu/now"
...
...
@@ -1106,6 +1107,11 @@ func GroupPowerApplyPass(c *gin.Context) (*mycontext.MyContext, error) {
if
err
!=
nil
{
return
myContext
,
err
}
// 发小助手通知用户
err
=
msg
.
SendLittleAssistantMsg
(
model
,
apply
.
UserId
,
msg_e
.
GroupPowerWelcomeJoin
,
""
,
""
,
""
,
""
,
""
)
if
err
!=
nil
{
model
.
Log
.
Errorf
(
"GroupPowerApplyPass msg err:%v"
,
err
)
}
resp
.
ResponseOk
(
c
,
nil
)
return
myContext
,
nil
...
...
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