Administrator
2025-05-26 aa6f00541d00cefb9b207671872a631dcb143293
fix(mall): 修复抽奖详情页面文字格式问题

- 将 ScoreFlowTypeEnum 中的 LUCKY_DRAW_COMMISSION 和 LUCKY_DRAW_SCORE 描述文本中的大括号 {} 替换为小括号 ()
- 修改 ApiMallActServiceImpl 中的 StrUtil.format 调用,使用 apiMallAwardDetailsVo.getAwardName() 替代 prize 变量
2 files modified
8 ■■■■ changed files
src/main/java/cc/mrbird/febs/common/enumerates/ScoreFlowTypeEnum.java 4 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallActServiceImpl.java 4 ●●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/common/enumerates/ScoreFlowTypeEnum.java
@@ -25,8 +25,8 @@
    /**
     * 抽奖
     */
    LUCKY_DRAW_COMMISSION(13, "幸运获得{}佣金"),
    LUCKY_DRAW_SCORE(12, "幸运获得{}积分"),
    LUCKY_DRAW_COMMISSION(13, "幸运获得{}"),
    LUCKY_DRAW_SCORE(12, "幸运获得{}"),
    LUCKY_DRAW(11, "使用{}积分"),
    MEMBER_INFO_GIFT(10, "完善个人信息,获得{}积分"),
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallActServiceImpl.java
@@ -581,7 +581,7 @@
                        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) {
@@ -592,7 +592,7 @@
                        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
                );
            }