lyhzzz 5 mēneši atpakaļ
vecāks
revīzija
0ff29bbfac

+ 3 - 1
src/main/java/com/fdkankan/ucenter/service/impl/SceneCooperationServiceImpl.java

@@ -411,7 +411,9 @@ public class SceneCooperationServiceImpl extends ServiceImpl<ISceneCooperationMa
 
             List<User> dbUserList = map.get(num);
             if(dbUserList != null && !dbUserList.isEmpty()){
-                freeCount = freeCount - dbUserList.size();
+                if(cameraId != null){
+                    freeCount = freeCount - dbUserList.size();
+                }
             }
 
             totalCount +=  users.size() - freeCount ;