diff --git a/server/websocket/internal/logic/ws_statistics.go b/server/websocket/internal/logic/ws_statistics.go index 9914df2e..176ee2a5 100644 --- a/server/websocket/internal/logic/ws_statistics.go +++ b/server/websocket/internal/logic/ws_statistics.go @@ -96,7 +96,7 @@ func ConsumeWebsocketStatData(ctx context.Context) { if ok { //存在就累加 mapUserWsStat.Store(key, statCount.(int)+data.Value) } else { //不存在就赋值 - mapUserWsStat.Store(key, statCount.(int)) + mapUserWsStat.Store(key, data.Value) } currentWebsocketConnectCount += data.Value case TYPE_COMBINE_IMAGE_REQUEST_COUNT: //请求算法合图计数