|
@@ -190,6 +190,12 @@ public class FsIntegralGoodsServiceImpl implements IFsIntegralGoodsService
|
|
param.setMaxPoints(stageMaxPoints);
|
|
param.setMaxPoints(stageMaxPoints);
|
|
List<FsIntegralGoods> stageGoods = selectRandomStageGoods(param);
|
|
List<FsIntegralGoods> stageGoods = selectRandomStageGoods(param);
|
|
|
|
|
|
|
|
+ if (stageGoods.size()<3){
|
|
|
|
+ param.setMinPoints(currentStage);
|
|
|
|
+ param.setMaxPoints(stageMaxPoints);
|
|
|
|
+ stageGoods = selectRandomStageGoods(param);
|
|
|
|
+ }
|
|
|
|
+
|
|
// 5. 转换为奖励商品列表
|
|
// 5. 转换为奖励商品列表
|
|
List<FsCourseAnswerReward.RewardProduct> products = new ArrayList<>();
|
|
List<FsCourseAnswerReward.RewardProduct> products = new ArrayList<>();
|
|
int minRequiredPoints = stageMaxPoints; // 用于计算进度的最小积分要求
|
|
int minRequiredPoints = stageMaxPoints; // 用于计算进度的最小积分要求
|