|
|
@@ -245,8 +245,11 @@ public class FsCourseQuestionBankServiceImpl implements IFsCourseQuestionBankSer
|
|
|
logs.setIsRight(1);
|
|
|
courseAnswerLogsMapper.insertFsCourseAnswerLogs(logs);
|
|
|
// 答题全对:触发看课谷币奖励(完整看课+答题全对,每节150谷币,重复只发一次)
|
|
|
+ // 仅 courseId=221 的课程可领取谷币积分
|
|
|
try {
|
|
|
- fsUserGuCoinLogsService.rewardCourseWatchGuCoin(param.getUserId(), param.getVideoId(), param.getCourseId());
|
|
|
+ if (param.getCourseId() != null && param.getCourseId() == 221L) {
|
|
|
+ fsUserGuCoinLogsService.rewardCourseWatchGuCoin(param.getUserId(), param.getVideoId(), param.getCourseId());
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
logger.error("看课谷币奖励发放异常 userId={}, videoId={}", param.getUserId(), param.getVideoId(), e);
|
|
|
}
|
|
|
@@ -356,8 +359,11 @@ public class FsCourseQuestionBankServiceImpl implements IFsCourseQuestionBankSer
|
|
|
logs.setIsRight(1);
|
|
|
courseAnswerLogsMapper.insertFsCourseAnswerLogs(logs);
|
|
|
// 答题全对:触发看课谷币奖励(完整看课+答题全对,每节150谷币,重复只发一次)
|
|
|
+ // 仅 courseId=221 的课程可领取谷币积分
|
|
|
try {
|
|
|
- fsUserGuCoinLogsService.rewardCourseWatchGuCoin(param.getUserId(), param.getVideoId(), param.getCourseId());
|
|
|
+ if (param.getCourseId() != null && param.getCourseId() == 221L) {
|
|
|
+ fsUserGuCoinLogsService.rewardCourseWatchGuCoin(param.getUserId(), param.getVideoId(), param.getCourseId());
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
logger.error("看课谷币奖励发放异常 userId={}, videoId={}", param.getUserId(), param.getVideoId(), e);
|
|
|
}
|
|
|
@@ -481,8 +487,11 @@ public class FsCourseQuestionBankServiceImpl implements IFsCourseQuestionBankSer
|
|
|
logs.setIsRight(1);
|
|
|
courseAnswerLogsMapper.insertFsCourseAnswerLogs(logs);
|
|
|
// 答题全对:触发看课谷币奖励(完整看课+答题全对,每节150谷币,重复只发一次)
|
|
|
+ // 仅 courseId=221 的课程可领取谷币积分
|
|
|
try {
|
|
|
- fsUserGuCoinLogsService.rewardCourseWatchGuCoin(param.getUserId(), param.getVideoId(), param.getCourseId());
|
|
|
+ if (param.getCourseId() != null && param.getCourseId() == 221L) {
|
|
|
+ fsUserGuCoinLogsService.rewardCourseWatchGuCoin(param.getUserId(), param.getVideoId(), param.getCourseId());
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
logger.error("看课谷币奖励发放异常 userId={}, videoId={}", param.getUserId(), param.getVideoId(), e);
|
|
|
}
|