|
@@ -888,14 +888,14 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
if (log.getRewardType() != null) {
|
|
|
FsCourseRedPacketLog packetLog = redPacketLogMapper.selectFsCourseRedPacketLogByTemporary(param.getVideoId(), param.getUserId());
|
|
|
if(packetLog != null && packetLog.getStatus() == 1) {
|
|
|
- return R.error("奖励已发放");
|
|
|
+ return R.error("已领取该课程奖励,不可重复领取!");
|
|
|
}
|
|
|
if(packetLog != null && packetLog.getStatus() == 0) {
|
|
|
if(StringUtils.isNotEmpty(packetLog.getResult())){
|
|
|
R r = JSON.parseObject(packetLog.getResult(), R.class);
|
|
|
return r;
|
|
|
} else {
|
|
|
- return R.error("奖励已发放");
|
|
|
+ return R.error("操作频繁,请稍后再试!");
|
|
|
}
|
|
|
}
|
|
|
if(packetLog != null && packetLog.getStatus() == 2) {
|
|
@@ -936,14 +936,14 @@ public class FsUserCourseVideoServiceImpl implements IFsUserCourseVideoService
|
|
|
if (log.getRewardType() != null) {
|
|
|
FsCourseRedPacketLog fsCourseRedPacketLog = redPacketLogMapper.selectUserFsCourseRedPacketLog(param.getVideoId(), param.getUserId(),param.getPeriodId());
|
|
|
if(fsCourseRedPacketLog != null && fsCourseRedPacketLog.getStatus() == 1) {
|
|
|
- return R.error("奖励已发放");
|
|
|
+ return R.error("已领取该课程奖励,不可重复领取!");
|
|
|
}
|
|
|
if(fsCourseRedPacketLog != null && fsCourseRedPacketLog.getStatus() == 0) {
|
|
|
if(StringUtils.isNotEmpty(fsCourseRedPacketLog.getResult())){
|
|
|
R r = JSON.parseObject(fsCourseRedPacketLog.getResult(), R.class);
|
|
|
return r;
|
|
|
} else {
|
|
|
- return R.error();
|
|
|
+ return R.error("操作频繁,请稍后再试!");
|
|
|
}
|
|
|
}
|
|
|
}
|