lyhzzz 5 ay önce
ebeveyn
işleme
b3496b2098

+ 2 - 0
src/main/java/com/fdkankan/ucenter/service/impl/SceneCooperationServiceImpl.java

@@ -413,6 +413,8 @@ public class SceneCooperationServiceImpl extends ServiceImpl<ISceneCooperationMa
             if(dbUserList != null && !dbUserList.isEmpty()){
                 if(cameraId != null){
                     freeCount = freeCount - dbUserList.size();
+                }else {
+                    freeCount +=  dbUserList.size() > freeCount ? dbUserList.size() : freeCount ;
                 }
             }