赠送道具默认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());
|
// UserProfile admin = userProfileGateway.getByUserId(cmd.requiredReqUserId());
|
||||||
|
|
||||||
|
|
||||||
sendPropsRecord(cmd, propsSourceRecord.getType());
|
sendPropsRecord(cmd, propsSourceRecord.getType(), 7);
|
||||||
//vip单独处理
|
//vip单独处理
|
||||||
if (propsSourceRecord.getType().equals(PropsCommodityType.NOBLE_VIP.name())) {
|
if (propsSourceRecord.getType().equals(PropsCommodityType.NOBLE_VIP.name())) {
|
||||||
PropsNobleVipAbilityDTO vipAbility = propsNobleVipGateway.getAbilityDTO(propsSourceRecord.getId());
|
PropsNobleVipAbilityDTO vipAbility = propsNobleVipGateway.getAbilityDTO(propsSourceRecord.getId());
|
||||||
@ -294,25 +294,25 @@ public class ManagerAuthServiceImpl implements ManagerAuthService {
|
|||||||
.equals(vipAbility.getCarId(), 0L)) {
|
.equals(vipAbility.getCarId(), 0L)) {
|
||||||
|
|
||||||
cmd.setPropsId(vipAbility.getCarId());
|
cmd.setPropsId(vipAbility.getCarId());
|
||||||
sendPropsRecord(cmd, ConsolePropsTypeEnum.RIDE.getName());
|
sendPropsRecord(cmd, ConsolePropsTypeEnum.RIDE.getName(), 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Objects.nonNull(vipAbility.getAvatarFrameId())
|
if (Objects.nonNull(vipAbility.getAvatarFrameId())
|
||||||
&& !Objects.equals(vipAbility.getAvatarFrameId(), 0L)) {
|
&& !Objects.equals(vipAbility.getAvatarFrameId(), 0L)) {
|
||||||
cmd.setPropsId(vipAbility.getAvatarFrameId());
|
cmd.setPropsId(vipAbility.getAvatarFrameId());
|
||||||
sendPropsRecord(cmd, ConsolePropsTypeEnum.AVATAR_FRAME.getName());
|
sendPropsRecord(cmd, ConsolePropsTypeEnum.AVATAR_FRAME.getName(), 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Objects.nonNull(vipAbility.getChatBubbleId())
|
if (Objects.nonNull(vipAbility.getChatBubbleId())
|
||||||
&& !Objects.equals(vipAbility.getChatBubbleId(), 0L)) {
|
&& !Objects.equals(vipAbility.getChatBubbleId(), 0L)) {
|
||||||
cmd.setPropsId(vipAbility.getChatBubbleId());
|
cmd.setPropsId(vipAbility.getChatBubbleId());
|
||||||
sendPropsRecord(cmd, ConsolePropsTypeEnum.CHAT_BUBBLE.getName());
|
sendPropsRecord(cmd, ConsolePropsTypeEnum.CHAT_BUBBLE.getName(), 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Objects.nonNull(vipAbility.getDataCardId())
|
if (Objects.nonNull(vipAbility.getDataCardId())
|
||||||
&& !Objects.equals(vipAbility.getDataCardId(), 0L)) {
|
&& !Objects.equals(vipAbility.getDataCardId(), 0L)) {
|
||||||
cmd.setPropsId(vipAbility.getDataCardId());
|
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);
|
log.info("admin free props start.{}", cmd);
|
||||||
// 赠送的都是7天
|
// 赠送的都是7天
|
||||||
@ -358,7 +358,7 @@ public class ManagerAuthServiceImpl implements ManagerAuthService {
|
|||||||
.setType(sourceType)
|
.setType(sourceType)
|
||||||
.setOrigin(SendPropsOrigin.ADMIN_FREE.name())
|
.setOrigin(SendPropsOrigin.ADMIN_FREE.name())
|
||||||
.setOriginDesc(SendPropsOrigin.ADMIN_FREE.getDesc())
|
.setOriginDesc(SendPropsOrigin.ADMIN_FREE.getDesc())
|
||||||
.setDays(7)
|
.setDays(days)
|
||||||
.setUseProps(Boolean.TRUE)
|
.setUseProps(Boolean.TRUE)
|
||||||
.setAllowGive(Boolean.FALSE)
|
.setAllowGive(Boolean.FALSE)
|
||||||
.setOpUser(cmd.requiredReqUserId()));
|
.setOpUser(cmd.requiredReqUserId()));
|
||||||
@ -379,7 +379,7 @@ public class ManagerAuthServiceImpl implements ManagerAuthService {
|
|||||||
officialNoticeClient.send(
|
officialNoticeClient.send(
|
||||||
NoticeExtTemplateCustomizeCmd.builder().toAccount(cmd.getAcceptUserId())
|
NoticeExtTemplateCustomizeCmd.builder().toAccount(cmd.getAcceptUserId())
|
||||||
.noticeType(OfficialNoticeTypeEnum.GIVE_AWAY_PROPS)
|
.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)
|
.expand(null)
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user