|
@@ -188,6 +188,9 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
|
|
|
@Autowired
|
|
|
private IFsUserWxService fsUserWxService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private FsCourseAnswerLogsMapper courseAnswerLogsMapper;
|
|
|
/**
|
|
|
* 查询课堂视频
|
|
|
*
|
|
@@ -742,6 +745,13 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
if (log == null) {
|
|
|
return R.error("无记录");
|
|
|
}
|
|
|
+
|
|
|
+ FsCourseAnswerLogs rightLog = courseAnswerLogsMapper.selectRightLogByCourseVideo(param.getVideoId(), param.getUserId(), param.getQwUserId());
|
|
|
+
|
|
|
+ if (rightLog == null) {
|
|
|
+ logger.error("未答题:{}",param.getUserId());
|
|
|
+ return R.error("未答题");
|
|
|
+ }
|
|
|
if (log.getRewardType() != null) {
|
|
|
FsCourseRedPacketLog fsCourseRedPacketLog = redPacketLogMapper.selectUserFsCourseRedPacketLog(param.getVideoId(), param.getUserId(),param.getPeriodId());
|
|
|
if(fsCourseRedPacketLog != null && fsCourseRedPacketLog.getStatus() == 1) {
|