赠送道具默认7天,赠送VIP默认3天
This commit is contained in:
parent
27ac3039b6
commit
2826529aca
@ -286,7 +286,7 @@ public class ManagerAuthServiceImpl implements ManagerAuthService {
|
||||
// UserProfile admin = userProfileGateway.getByUserId(cmd.requiredReqUserId());
|
||||
|
||||
|
||||
sendPropsRecord(cmd, propsSourceRecord.getType());
|
||||
sendPropsRecord(cmd, propsSourceRecord.getType(), 7);
|
||||
//vip单独处理
|
||||
if (propsSourceRecord.getType().equals(PropsCommodityType.NOBLE_VIP.name())) {
|
||||
PropsNobleVipAbilityDTO vipAbility = propsNobleVipGateway.getAbilityDTO(propsSourceRecord.getId());
|
||||
@ -294,25 +294,25 @@ public class ManagerAuthServiceImpl implements ManagerAuthService {
|
||||
.equals(vipAbility.getCarId(), 0L)) {
|
||||
|
||||
cmd.setPropsId(vipAbility.getCarId());
|
||||
sendPropsRecord(cmd, ConsolePropsTypeEnum.RIDE.getName());
|
||||
sendPropsRecord(cmd, ConsolePropsTypeEnum.RIDE.getName(), 3);
|
||||
}
|
||||
|
||||
if (Objects.nonNull(vipAbility.getAvatarFrameId())
|
||||
&& !Objects.equals(vipAbility.getAvatarFrameId(), 0L)) {
|
||||
cmd.setPropsId(vipAbility.getAvatarFrameId());
|
||||
sendPropsRecord(cmd, ConsolePropsTypeEnum.AVATAR_FRAME.getName());
|
||||
sendPropsRecord(cmd, ConsolePropsTypeEnum.AVATAR_FRAME.getName(), 3);
|
||||
}
|
||||
|
||||
if (Objects.nonNull(vipAbility.getChatBubbleId())
|
||||
&& !Objects.equals(vipAbility.getChatBubbleId(), 0L)) {
|
||||
cmd.setPropsId(vipAbility.getChatBubbleId());
|
||||
sendPropsRecord(cmd, ConsolePropsTypeEnum.CHAT_BUBBLE.getName());
|
||||
sendPropsRecord(cmd, ConsolePropsTypeEnum.CHAT_BUBBLE.getName(), 3);
|
||||
}
|
||||
|
||||
if (Objects.nonNull(vipAbility.getDataCardId())
|
||||
&& !Objects.equals(vipAbility.getDataCardId(), 0L)) {
|
||||
cmd.setPropsId(vipAbility.getDataCardId());
|
||||
sendPropsRecord(cmd, ConsolePropsTypeEnum.DATA_CARD.getName());
|
||||
sendPropsRecord(cmd, ConsolePropsTypeEnum.DATA_CARD.getName(), 3);
|
||||
}
|
||||
}
|
||||
|
||||
@ -348,7 +348,7 @@ public class ManagerAuthServiceImpl implements ManagerAuthService {
|
||||
}
|
||||
|
||||
|
||||
private void sendPropsRecord(PropsGiveAwayCmd cmd, String sourceType) {
|
||||
private void sendPropsRecord(PropsGiveAwayCmd cmd, String sourceType, Integer days) {
|
||||
//开始赠送道具
|
||||
log.info("admin free props start.{}", cmd);
|
||||
// 赠送的都是7天
|
||||
@ -358,7 +358,7 @@ public class ManagerAuthServiceImpl implements ManagerAuthService {
|
||||
.setType(sourceType)
|
||||
.setOrigin(SendPropsOrigin.ADMIN_FREE.name())
|
||||
.setOriginDesc(SendPropsOrigin.ADMIN_FREE.getDesc())
|
||||
.setDays(7)
|
||||
.setDays(days)
|
||||
.setUseProps(Boolean.TRUE)
|
||||
.setAllowGive(Boolean.FALSE)
|
||||
.setOpUser(cmd.requiredReqUserId()));
|
||||
@ -379,7 +379,7 @@ public class ManagerAuthServiceImpl implements ManagerAuthService {
|
||||
officialNoticeClient.send(
|
||||
NoticeExtTemplateCustomizeCmd.builder().toAccount(cmd.getAcceptUserId())
|
||||
.noticeType(OfficialNoticeTypeEnum.GIVE_AWAY_PROPS)
|
||||
.content(I18nUtils.getPropsRewardContent(sourceType, 7, I18nUtils.getLanguageByRegion(region.getRegionName())))
|
||||
.content(I18nUtils.getPropsRewardContent(sourceType, days, I18nUtils.getLanguageByRegion(region.getRegionName())))
|
||||
.expand(null)
|
||||
.build());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user