From 47bc4200a74e755ff3a899194a5539821be923a8 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Thu, 2 Nov 2023 15:25:39 +0800 Subject: [PATCH] fix --- server/websocket/internal/logic/ws_statistics.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/websocket/internal/logic/ws_statistics.go b/server/websocket/internal/logic/ws_statistics.go index ff8ce415..1d942830 100644 --- a/server/websocket/internal/logic/ws_statistics.go +++ b/server/websocket/internal/logic/ws_statistics.go @@ -222,11 +222,11 @@ func ConsumeWebsocketStatData() { //保存统计 mapUserWsStat.Store(key, stat) case TYPE_CUR_COMBINE_IMAGE_COUNT: //请求算法合图计数 - curCombineTotalCount += data.Num //不存在 if !ok { continue } + curCombineTotalCount += data.Num //存在 stat, ok := statData.(mapUserWsStatItem) if !ok { @@ -240,10 +240,10 @@ func ConsumeWebsocketStatData() { //保存统计 mapUserWsStat.Store(key, stat) case TYPE_CUR_UNITY_HANDLE_COUNT: //unity处理计数 - curUnityHandleTotalCount += data.Num if !ok { continue } + curUnityHandleTotalCount += data.Num //存在 stat, ok := statData.(mapUserWsStatItem) if !ok { @@ -257,10 +257,10 @@ func ConsumeWebsocketStatData() { //保存统计 mapUserWsStat.Store(key, stat) case TYPE_CUR_COMBINE_IMAGE_ERR_COUNT: //合图失败计数 - combineErrTotalCount += data.Num if !ok { continue } + combineErrTotalCount += data.Num //存在 stat, ok := statData.(mapUserWsStatItem) if !ok { @@ -271,10 +271,10 @@ func ConsumeWebsocketStatData() { //保存统计 mapUserWsStat.Store(key, stat) case TYPE_UNITY_ERR_COUNT: //unity错误信息 - unityErrTotalCount += data.Num if !ok { continue } + unityErrTotalCount += data.Num //存在 stat, ok := statData.(mapUserWsStatItem) if !ok {