he2802 2 anni fa
parent
commit
99ad119b10

+ 3 - 1
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/service/impl/UserStudyRecordServiceImpl.java

@@ -1411,7 +1411,9 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
         String key = "PERIOD_VIDEO_Record:"+entity.getOrderGoodsId()+"-"+entity.getSectionId();
         Long keyStatus = redisCache.getCacheObject(key);
         if(Validator.isNotEmpty(keyStatus)&&keyStatus==100L){
-            throw new CustomException("禁止频繁提交",667);
+            if(Validator.isEmpty(entity.getStatus())||entity.getStatus()!=1){
+                throw new CustomException("禁止频繁提交",667);
+            }
         }
         redisCache.setCacheObject(key, 100L,2, TimeUnit.SECONDS);
         // 学习无记录加一条学时审核记录