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 {