fix
This commit is contained in:
parent
9a82b28377
commit
234f8399ab
|
@ -222,6 +222,7 @@ func ConsumeWebsocketStatData() {
|
|||
//保存统计
|
||||
mapUserWsStat.Store(key, stat)
|
||||
case TYPE_CUR_COMBINE_IMAGE_COUNT: //请求算法合图计数
|
||||
curCombineTotalCount += data.Num
|
||||
//不存在
|
||||
if !ok {
|
||||
continue
|
||||
|
@ -232,11 +233,11 @@ func ConsumeWebsocketStatData() {
|
|||
logx.Error("断言mapUserWsStatItem错误")
|
||||
continue
|
||||
}
|
||||
curCombineTotalCount += data.Num
|
||||
stat.CurCombineCount += data.Num
|
||||
//保存统计
|
||||
mapUserWsStat.Store(key, stat)
|
||||
case TYPE_CUR_UNITY_HANDLE_COUNT: //unity处理计数
|
||||
curUnityHandleTotalCount += data.Num
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
|
@ -246,11 +247,11 @@ func ConsumeWebsocketStatData() {
|
|||
logx.Error("断言mapUserWsStatItem错误")
|
||||
continue
|
||||
}
|
||||
curUnityHandleTotalCount += data.Num
|
||||
stat.CurUnityHandleCount += data.Num
|
||||
//保存统计
|
||||
mapUserWsStat.Store(key, stat)
|
||||
case TYPE_CUR_COMBINE_IMAGE_ERR_COUNT: //合图失败计数
|
||||
combineErrTotalCount += data.Num
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
|
@ -260,11 +261,11 @@ func ConsumeWebsocketStatData() {
|
|||
logx.Error("断言mapUserWsStatItem错误")
|
||||
continue
|
||||
}
|
||||
combineErrTotalCount += data.Num
|
||||
stat.CombineErrCount += data.Num
|
||||
//保存统计
|
||||
mapUserWsStat.Store(key, stat)
|
||||
case TYPE_UNITY_ERR_COUNT: //unity错误信息
|
||||
unityErrTotalCount += data.Num
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
|
@ -274,7 +275,6 @@ func ConsumeWebsocketStatData() {
|
|||
logx.Error("断言mapUserWsStatItem错误")
|
||||
continue
|
||||
}
|
||||
unityErrTotalCount += data.Num
|
||||
stat.UnityErrCount += data.Num
|
||||
//保存统计
|
||||
mapUserWsStat.Store(key, stat)
|
||||
|
|
Loading…
Reference in New Issue
Block a user