Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop

This commit is contained in:
momo 2023-11-02 15:28:37 +08:00
commit 3366ed74f4

View File

@ -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 {