...
 
Commits (4)
......@@ -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,17 +112,15 @@ 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)
}
if l > 0 {
mylogrus.MyLog.Infof("cron sendGiftChan msg,left %v", l)
}
}
}
}
......
......@@ -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 */
......