fix(mall): 修复抽奖详情页面文字格式问题
- 将 ScoreFlowTypeEnum 中的 LUCKY_DRAW_COMMISSION 和 LUCKY_DRAW_SCORE 描述文本中的大括号 {} 替换为小括号 ()
- 修改 ApiMallActServiceImpl 中的 StrUtil.format 调用,使用 apiMallAwardDetailsVo.getAwardName() 替代 prize 变量
| | |
| | | /** |
| | | * 抽奖 |
| | | */ |
| | | LUCKY_DRAW_COMMISSION(13, "幸运获得{}佣金"), |
| | | LUCKY_DRAW_SCORE(12, "幸运获得{}积分"), |
| | | LUCKY_DRAW_COMMISSION(13, "幸运获得{}"), |
| | | LUCKY_DRAW_SCORE(12, "幸运获得{}"), |
| | | LUCKY_DRAW(11, "使用{}积分"), |
| | | |
| | | MEMBER_INFO_GIFT(10, "完善个人信息,获得{}积分"), |
| | |
| | | ScoreFlowTypeEnum.LUCKY_DRAW_SCORE.getValue(), |
| | | MallUtils.getOrderNum(), |
| | | FlowTypeEnum.PRIZE_SCORE.getValue(), |
| | | StrUtil.format(ScoreFlowTypeEnum.LUCKY_DRAW_SCORE.getDesc(),prize), |
| | | StrUtil.format(ScoreFlowTypeEnum.LUCKY_DRAW_SCORE.getDesc(),apiMallAwardDetailsVo.getAwardName()), |
| | | 2 |
| | | ); |
| | | } else if (apiMallAwardDetailsVo.getAwardType() == 2) { |
| | |
| | | ScoreFlowTypeEnum.LUCKY_DRAW_COMMISSION.getValue(), |
| | | MallUtils.getOrderNum(), |
| | | FlowTypeEnum.COMMISSION.getValue(), |
| | | StrUtil.format(ScoreFlowTypeEnum.LUCKY_DRAW_COMMISSION.getDesc(),prize), |
| | | StrUtil.format(ScoreFlowTypeEnum.LUCKY_DRAW_COMMISSION.getDesc(),apiMallAwardDetailsVo.getAwardName()), |
| | | 2 |
| | | ); |
| | | } |