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
Compare Revisions
master_tx...master
Source
master
Select Git revision
...
Target
master_tx
Select Git revision
Compare
Commits (4)
feat:优化告警
· 833f2a9b
hujiebin
authored
Dec 04, 2023
833f2a9b
Update userProxy.proto
· a02e1a3f
hujiebin
authored
Apr 15, 2024
a02e1a3f
Merge branch 'feature/svip89' into 'master'
· 56504493
hujiebin
authored
Apr 15, 2024
Update userProxy.proto See merge request
!2
56504493
feat:去掉无用日志
· ac233b61
hujiebin
authored
May 09, 2024
ac233b61
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
main.go
main.go
+6
-9
userProxy.proto
protocol/userProxy.proto
+1
-0
No files found.
main.go
View file @
ac233b61
...
@@ -11,7 +11,6 @@ import (
...
@@ -11,7 +11,6 @@ import (
"google.golang.org/grpc/resolver"
"google.golang.org/grpc/resolver"
"google.golang.org/grpc/resolver/manual"
"google.golang.org/grpc/resolver/manual"
"hilo-socketCenter/common"
"hilo-socketCenter/common"
"hilo-socketCenter/common/dingding"
"hilo-socketCenter/common/mylogrus"
"hilo-socketCenter/common/mylogrus"
"hilo-socketCenter/common/redisCli"
"hilo-socketCenter/common/redisCli"
"hilo-socketCenter/domain/model/rpc_m"
"hilo-socketCenter/domain/model/rpc_m"
...
@@ -113,17 +112,15 @@ func check() {
...
@@ -113,17 +112,15 @@ func check() {
mylogrus
.
MyLog
.
Infof
(
"cron sendGiftChan msg error,left %v-%v"
,
l
,
err
)
mylogrus
.
MyLog
.
Infof
(
"cron sendGiftChan msg error,left %v-%v"
,
l
,
err
)
}
}
if
l
>
MONITOR_LENGTH
{
if
l
>
MONITOR_LENGTH
{
go
func
()
{
mylogrus
.
MyLog
.
Infof
(
"送礼横幅变化通知延迟,队列%s长度:%d"
,
SocketQueueSendGift
,
l
)
if
sErr
:=
dingding
.
SendDingRobot
(
dingding
.
ROBOTWEBHOOK
,
fmt
.
Sprintf
(
"送礼横幅变化通知延迟,队列%s长度:%d"
,
SocketQueueSendGift
,
l
),
true
);
sErr
!=
nil
{
//go func() {
mylogrus
.
MyLog
.
Errorf
(
"dingding msg fail:%v"
,
sErr
)
// 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
()
n
,
err
:=
redisCli
.
GetRedisCluster
()
.
Del
(
context
.
Background
(),
SocketQueueSendGift
)
.
Result
()
mylogrus
.
MyLog
.
Infof
(
"del sendGiftChan msg queue:%v,n:%v,err:%v"
,
SocketQueueSendGift
,
n
,
err
)
mylogrus
.
MyLog
.
Infof
(
"del sendGiftChan msg queue:%v,n:%v,err:%v"
,
SocketQueueSendGift
,
n
,
err
)
}
}
if
l
>
0
{
mylogrus
.
MyLog
.
Infof
(
"cron sendGiftChan msg,left %v"
,
l
)
}
}
}
}
}
}
}
...
...
protocol/userProxy.proto
View file @
ac233b61
...
@@ -214,6 +214,7 @@ message GlobalGiftBanner {
...
@@ -214,6 +214,7 @@ message GlobalGiftBanner {
uint32
cpLevel
=
15
;
// cp等级
uint32
cpLevel
=
15
;
// cp等级
string
receiveUserAvatar
=
16
;
string
receiveUserAvatar
=
16
;
uint32
nobleLevel
=
17
;
// 贵族等级
uint32
nobleLevel
=
17
;
// 贵族等级
string
custom_effect_url
=
18
;
// 定制特效url
}
}
/* id == 116 横幅的回应,用来测量RTT */
/* id == 116 横幅的回应,用来测量RTT */
...
...