yjwang 1 день назад
Родитель
Сommit
b1beef6b1e

+ 0 - 3
fs-service/src/main/java/com/fs/course/service/impl/FsUserCourseVideoServiceImpl.java

@@ -1002,8 +1002,6 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
             }
 
             //验证看课记录是否存在
-            FsCourseWatchLog log = courseWatchLogMapper.getWatchCourseVideoInfo(param.getUserId(), param.getVideoId(), param.getPeriodId());
-            if(log != null){
                 // 计算流量
                 BigDecimal result = param.getBufferRate().divide(new BigDecimal("100"), 4, RoundingMode.HALF_UP);
                 BigDecimal longAsBigDecimal = BigDecimal.valueOf(video.getFileSize());
@@ -1021,7 +1019,6 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
                     asyncDeductTraffic(company, trafficLog);
                     fsCourseTrafficLogMapper.insertOrUpdateTrafficLog(trafficLog);
                 }
-            }
         } catch (Exception e) {
             e.printStackTrace();
             // 打印参数param和异常信息