|
@@ -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 result = param.getBufferRate().divide(new BigDecimal("100"), 4, RoundingMode.HALF_UP);
|
|
|
BigDecimal longAsBigDecimal = BigDecimal.valueOf(video.getFileSize());
|
|
BigDecimal longAsBigDecimal = BigDecimal.valueOf(video.getFileSize());
|
|
@@ -1021,7 +1019,6 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
asyncDeductTraffic(company, trafficLog);
|
|
asyncDeductTraffic(company, trafficLog);
|
|
|
fsCourseTrafficLogMapper.insertOrUpdateTrafficLog(trafficLog);
|
|
fsCourseTrafficLogMapper.insertOrUpdateTrafficLog(trafficLog);
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
// 打印参数param和异常信息
|
|
// 打印参数param和异常信息
|