he2802 3 жил өмнө
parent
commit
99aadaf7d0

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

@@ -307,7 +307,9 @@ public class UserStudyRecordServiceImpl extends ServiceImpl<UserStudyRecordMappe
                 return 1;
             }
         }
-        redisCache.setCacheObject(key,1L,5, TimeUnit.SECONDS);//5秒
+        if(Validator.isNotEmpty(bo.getPhoto())){
+            redisCache.setCacheObject(key,1L,3, TimeUnit.SECONDS);//3秒
+        }
 
         CourseSectionVo courseSectionVo =iCourseSectionService.queryById(bo.getSectionId());
         if(courseSectionVo.getSectionType()==2&&Validator.isNotEmpty(bo.getPhoto())){  //直播有拍照即学完 第五阶段去掉这个需求