From 3343943965a6e7157c2ba9e5adc9488a641a7621 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Mon, 3 Nov 2025 19:45:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=A0=E9=80=81=E5=8B=8B=E7=AB=A0=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../props/PropsBackpackClientEndpoint.java | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/endpoint/material/props/PropsBackpackClientEndpoint.java b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/endpoint/material/props/PropsBackpackClientEndpoint.java index c60d2ae9..5d508384 100644 --- a/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/endpoint/material/props/PropsBackpackClientEndpoint.java +++ b/rc-service/rc-service-other/other-inner-endpoint/src/main/java/com/red/circle/other/app/inner/endpoint/material/props/PropsBackpackClientEndpoint.java @@ -5,7 +5,9 @@ import com.red.circle.external.inner.model.cmd.message.notice.official.NoticeExt import com.red.circle.external.inner.model.enums.message.OfficialNoticeTypeEnum; import com.red.circle.framework.dto.ResultResponse; import com.red.circle.other.app.inner.service.material.props.PropsBackpackClientService; +import com.red.circle.other.infra.database.rds.entity.badge.BadgePictureConfig; import com.red.circle.other.infra.database.rds.entity.props.PropsSourceRecord; +import com.red.circle.other.infra.database.rds.service.badge.BadgePictureConfigService; import com.red.circle.other.infra.database.rds.service.props.PropsSourceRecordService; import com.red.circle.other.infra.utils.I18nUtils; import com.red.circle.other.domain.gateway.user.UserProfileGateway; @@ -20,10 +22,9 @@ import com.red.circle.other.inner.model.cmd.material.PropsBackpackQry; import com.red.circle.other.inner.model.cmd.material.ReduceDaysAndUnUseCmd; import com.red.circle.other.inner.model.dto.material.PropsBackpackDTO; import com.red.circle.other.inner.model.dto.material.UsePropsDTO; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.Set; + +import java.util.*; + import lombok.RequiredArgsConstructor; import org.springframework.http.MediaType; import org.springframework.validation.annotation.Validated; @@ -46,6 +47,7 @@ public class PropsBackpackClientEndpoint implements PropsBackpackClientApi { private final UserProfileGateway userProfileGateway; private final UserRegionGateway userRegionGateway; private final PropsSourceRecordService propsSourceRecordService; + private final BadgePictureConfigService badgePictureConfigService; @Override public ResultResponse switchUseProps(Long userId, Long propsId) { @@ -91,6 +93,11 @@ public class PropsBackpackClientEndpoint implements PropsBackpackClientApi { } if (!Objects.isNull(user)) { + if (Arrays.asList("ACTIVITY", "ADMINISTRATOR").contains(type)) { + BadgePictureConfig badgePictureConfig = badgePictureConfigService.getByBadgeId(user.getOriginSys(), propsId); + url = badgePictureConfig != null ? badgePictureConfig.getSelectUrl() : ""; + } + RegionConfig region = userRegionGateway.getRegionConfigByUserId(userId); officialNoticeClient.send( NoticeExtTemplateCustomizeCmd.builder().toAccount(userId)