diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/SendCpApplyCmdExe.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/SendCpApplyCmdExe.java index cc8785e3..d7e1c775 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/SendCpApplyCmdExe.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/command/user/SendCpApplyCmdExe.java @@ -30,6 +30,8 @@ import com.red.circle.wallet.inner.endpoint.wallet.WalletGoldClient; import com.red.circle.wallet.inner.model.cmd.GoldReceiptCmd; import com.red.circle.wallet.inner.model.dto.WalletReceiptResDTO; import com.red.circle.wallet.inner.model.enums.GoldOrigin; + +import java.util.Map; import java.util.Objects; import java.util.concurrent.TimeUnit; import lombok.RequiredArgsConstructor; @@ -114,10 +116,12 @@ public class SendCpApplyCmdExe { cpApplyService.save(cpApply); + Map map = OfficialNoticeUtils.buildUserProfile(userProfile); + map.put("applyType", isReconcile ? "RECONCILE" : "APPLY"); officialNoticeClient.send(NoticeExtTemplateTypeCmd.builder() .toAccount(cmd.getAcceptApplyUserId()) .noticeType(OfficialNoticeTypeEnum.CP_BUILD) - .templateParam(OfficialNoticeUtils.buildUserProfile(userProfile)) + .templateParam(map) .expand(cpApply.getId()) .build() );