yjwang преди 1 ден
родител
ревизия
b1beef6b1e
променени са 1 файла, в които са добавени 0 реда и са изтрити 3 реда
  1. 0 3
      fs-service/src/main/java/com/fs/course/service/impl/FsUserCourseVideoServiceImpl.java

+ 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和异常信息