浏览代码

相机容量不足不能复制

lyhzzz 2 年之前
父节点
当前提交
5378893354
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/main/java/com/fdkankan/ucenter/service/impl/SceneProServiceImpl.java

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

@@ -669,12 +669,12 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
         if(incrementType.getCameraCapacity() != -1){
             Long usedSpace = detailEntity.getUsedSpace();
             if( scenePro != null && scenePro.getSpace() + usedSpace > incrementType.getCameraCapacity() * 1024 * 1024 * 1024L){
-                scenePro.setPayStatus(-2);
+                throw new BusinessException(CameraConstant.FAILURE_CODE_6008, CameraConstant.FAILURE_MSG_6008);
             }
             if( scenePlus != null ){
                 ScenePlusExt ext = scenePlusExtService.getByPlusId(scenePlus.getId());
                 if(ext.getSpace() + usedSpace > incrementType.getCameraCapacity() * 1024 * 1024 * 1024L){
-                    scenePlus.setPayStatus(-2);
+                    throw new BusinessException(CameraConstant.FAILURE_CODE_6008, CameraConstant.FAILURE_MSG_6008);
                 }
             }
         }