Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-socketCenter
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-socketCenter
Commits
9f45e0f6
Commit
9f45e0f6
authored
Apr 07, 2024
by
hujiebin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/svip89' into test
parents
91421ef9
87a5e0e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
14 deletions
+15
-14
main.go
main.go
+6
-6
userProxy.proto
protocol/userProxy.proto
+1
-0
release.ini
release.ini
+8
-8
No files found.
main.go
View file @
9f45e0f6
...
...
@@ -11,7 +11,6 @@ import (
"google.golang.org/grpc/resolver"
"google.golang.org/grpc/resolver/manual"
"hilo-socketCenter/common"
"hilo-socketCenter/common/dingding"
"hilo-socketCenter/common/mylogrus"
"hilo-socketCenter/common/redisCli"
"hilo-socketCenter/domain/model/rpc_m"
...
...
@@ -113,11 +112,12 @@ func check() {
mylogrus
.
MyLog
.
Infof
(
"cron sendGiftChan msg error,left %v-%v"
,
l
,
err
)
}
if
l
>
MONITOR_LENGTH
{
go
func
()
{
if
sErr
:=
dingding
.
SendDingRobot
(
dingding
.
ROBOTWEBHOOK
,
fmt
.
Sprintf
(
"送礼横幅变化通知延迟,队列%s长度:%d"
,
SocketQueueSendGift
,
l
),
true
);
sErr
!=
nil
{
mylogrus
.
MyLog
.
Errorf
(
"dingding msg fail:%v"
,
sErr
)
}
}()
mylogrus
.
MyLog
.
Infof
(
"送礼横幅变化通知延迟,队列%s长度:%d"
,
SocketQueueSendGift
,
l
)
//go func() {
// if sErr := dingding.SendDingRobot(dingding.ROBOTWEBHOOK, fmt.Sprintf("送礼横幅变化通知延迟,队列%s长度:%d", SocketQueueSendGift, l), true); sErr != nil {
// mylogrus.MyLog.Errorf("dingding msg fail:%v", sErr)
// }
//}()
n
,
err
:=
redisCli
.
GetRedisCluster
()
.
Del
(
context
.
Background
(),
SocketQueueSendGift
)
.
Result
()
mylogrus
.
MyLog
.
Infof
(
"del sendGiftChan msg queue:%v,n:%v,err:%v"
,
SocketQueueSendGift
,
n
,
err
)
}
...
...
protocol/userProxy.proto
View file @
9f45e0f6
...
...
@@ -214,6 +214,7 @@ message GlobalGiftBanner {
uint32
cpLevel
=
15
;
// cp等级
string
receiveUserAvatar
=
16
;
uint32
nobleLevel
=
17
;
// 贵族等级
string
custom_effect_url
=
18
;
// 定制特效url
}
/* id == 116 横幅的回应,用来测量RTT */
...
...
release.ini
View file @
9f45e0f6
[DATABASE]
MYSQL_HOST
=
ua4papc3hmgqf351pbej-rw4rm.rwlb.dubai.rds.aliyuncs.com
MYSQL_USERNAME
=
nextvideo
MYSQL_PASSWORD
=
ihlUwI4nhi9W88MI
MYSQL_HOST
=
172.28.16.44
MYSQL_USERNAME
=
hilo_master
MYSQL_PASSWORD
=
o8NNd8F7e6On2RqIgOhsy1PsiSxROT3n
MYSQL_DB
=
hilo
[DATABASECODE]
MYSQL_HOST
=
ua4papc3hmgqf351pbej-rw4rm.rwlb.dubai.rds.aliyuncs.com
MYSQL_USERNAME
=
nextvideo
MYSQL_PASSWORD
=
ihlUwI4nhi9W88MI
MYSQL_HOST
=
172.28.16.44
MYSQL_USERNAME
=
hilo_master
MYSQL_PASSWORD
=
o8NNd8F7e6On2RqIgOhsy1PsiSxROT3n
MYSQL_DB
=
hilo_code
[REDIS]
REDIS_HOST
=
r-eb3btxn8vfdsuwdbuf.redis.dubai.rds.aliyuncs.com
:6379
REDIS_HOST
=
172.28.16.31
:6379
REDIS_PASSWORD
=
REDIS_CLUSTER_HOST
=
r-eb3yt6k8zgxs62kjjs.redis.dubai.rds.aliyuncs.com
:6379
REDIS_CLUSTER_HOST
=
172.28.16.47
:6379
REDIS_CLUSTER_PASSWORD
=
[JWT]
SECRET
=
hilo1504
...
...
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