新增 BZIZI 平台支持,去除业务代码中硬编码的 LIKEI 关键字
- SysOriginPlatformEnum 新增 BZIZI("Bzizi", 12) 枚举值
- GameSysOriginEnum 新增 BZIZI("Bzizi")
- FreightGoldToUsdRatioEnum 新增 BZIZI(10000)
- 将主业务代码及测试代码中所有写死的 LIKEI 替换为 BZIZI(共 65 个文件)
- 保留枚举定义中的 LIKEI 值及日志消息不变
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
6a6f7d64bf
commit
be7f7d7c05
@ -30,12 +30,13 @@ public enum SysOriginPlatformEnum implements ISysOriginPlatform {
|
||||
LOTFUN("Lotfun",9),
|
||||
HOOKA("Hooka",10),
|
||||
LIKEI("Likei",11),
|
||||
BZIZI("Bzizi",12),
|
||||
;
|
||||
|
||||
/**
|
||||
* 语言房系统.
|
||||
*/
|
||||
private static final List<SysOriginPlatformEnum> VOICE_SYSTEM = List.of(TARAB, YOLO, HALAR, LIKEI, HOOKA);
|
||||
private static final List<SysOriginPlatformEnum> VOICE_SYSTEM = List.of(TARAB, YOLO, HALAR, LIKEI, HOOKA, BZIZI);
|
||||
|
||||
/**
|
||||
* 平台名称.
|
||||
|
||||
@ -33,7 +33,7 @@ public class LevelUtils {
|
||||
LevelType.ROOM, new LevelCalculation(10000L * 5L),
|
||||
LevelType.CARD, new LevelCalculation(1000L * 5L)
|
||||
),
|
||||
SysOriginPlatformEnum.LIKEI, Map.of(
|
||||
SysOriginPlatformEnum.BZIZI, Map.of(
|
||||
LevelType.USER, new LevelCalculation(500L * 5L),
|
||||
LevelType.ROOM, new LevelCalculation(10000L * 5L),
|
||||
LevelType.CARD, new LevelCalculation(1000L * 5L)
|
||||
|
||||
@ -15,6 +15,7 @@ public enum GameSysOriginEnum implements ISysOriginPlatform {
|
||||
LOTFUN("Lotfun"),
|
||||
HOOKA("Hooka"),
|
||||
LIKEI("Likei"),
|
||||
BZIZI("Bzizi"),
|
||||
;
|
||||
|
||||
private final String originName;
|
||||
|
||||
@ -50,7 +50,7 @@ import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import static com.red.circle.common.business.core.enums.SysOriginPlatformEnum.LIKEI;
|
||||
import static com.red.circle.common.business.core.enums.SysOriginPlatformEnum.BZIZI;
|
||||
|
||||
/**
|
||||
* 系统活动配置.
|
||||
@ -271,8 +271,8 @@ public class SysActivityConfigServiceImpl implements SysActivityConfigService {
|
||||
|
||||
@Override
|
||||
public ActivityRankCO getActivityRank(Long activityId) {
|
||||
ResultResponse<PageResult<SysActivityCountDTO>> response = weekKingQueenClient.listRanking("LIKEI", KingQueenType.CHARM, getThisWeekDate(), 1L, 20L);
|
||||
ResultResponse<PageResult<SysActivityCountDTO>> response2 = weekKingQueenClient.listRanking("LIKEI", KingQueenType.WEALTH, getThisWeekDate(), 1L, 20L);
|
||||
ResultResponse<PageResult<SysActivityCountDTO>> response = weekKingQueenClient.listRanking("BZIZI", KingQueenType.CHARM, getThisWeekDate(), 1L, 20L);
|
||||
ResultResponse<PageResult<SysActivityCountDTO>> response2 = weekKingQueenClient.listRanking("BZIZI", KingQueenType.WEALTH, getThisWeekDate(), 1L, 20L);
|
||||
List<SysActivityCountDTO> butOnes = (ArrayList) response.getBody().getRecords();
|
||||
List<SysActivityCountDTO> butTwos = (ArrayList) response2.getBody().getRecords();
|
||||
|
||||
|
||||
@ -59,7 +59,7 @@ public class StatisticsDailyRegisterLogoutPlatformServiceImpl extends
|
||||
|
||||
private String countUserByRegion(LocalDate countTime, LocalDate endCountTime) {
|
||||
// 查询各个区域的注册信息插入数据库
|
||||
List<IUserBaseInfo> userBaseInfos = userBaseInfoService.countUserByRegion(SysOriginPlatformEnum.LIKEI.getSysOrigin(), countTime, endCountTime);
|
||||
List<IUserBaseInfo> userBaseInfos = userBaseInfoService.countUserByRegion(SysOriginPlatformEnum.BZIZI.getSysOrigin(), countTime, endCountTime);
|
||||
log.warn("新增用户开始结束时间:" + countTime + "----" + endCountTime + "----" + JSON.toJSONString(userBaseInfos));
|
||||
List<IUserBaseInfo> TH = userBaseInfos.stream().filter(item -> item.getCountryCode().equals("TH") || item.getCountryCode().equals("LA")).toList();
|
||||
List<IUserBaseInfo> MY = userBaseInfos.stream().filter(item -> item.getCountryCode().equals("MY")).toList();
|
||||
|
||||
@ -67,7 +67,7 @@ public class UserProfileAndCountryQueryExe {
|
||||
userRegionClient.getRegionId(userProfile.getId())
|
||||
);
|
||||
|
||||
if (Objects.equals(cmd.getSysOrigin(), SysOriginPlatformEnum.LIKEI.name())) {
|
||||
if (Objects.equals(cmd.getSysOrigin(), SysOriginPlatformEnum.BZIZI.name())) {
|
||||
ResponseAssert.isTrue(CommonErrorCode.NOT_SUPPORTED_REGION, StringUtils.isNotBlank(regionId));
|
||||
|
||||
List<RegionRelationDTO> regionRelationList = getRegionRelationList(userProfile, regionId);
|
||||
|
||||
@ -58,7 +58,7 @@ public class GoogleReimburseCheckTask {
|
||||
|
||||
public void executeReimburse(int latestMinutes) {
|
||||
List.of(
|
||||
KeyValuePair.of(SysOriginPlatformEnum.LIKEI, "com.tkm.likei")
|
||||
KeyValuePair.of(SysOriginPlatformEnum.BZIZI, "com.tkm.likei")
|
||||
).forEach(keyValuePair -> {
|
||||
|
||||
VoidedPurchasesListResponse response = googleVerifyService
|
||||
|
||||
@ -106,7 +106,7 @@ public class OrderPurchaseHistoryClientServiceImpl implements OrderPurchaseHisto
|
||||
.select(OrderPurchaseHistory::getId)
|
||||
.eq(OrderPurchaseHistory::getUserId, userId)
|
||||
.eq(OrderPurchaseHistory::getPayPlatform, "GOOGLE")
|
||||
.eq(OrderPurchaseHistory::getSysOrigin, "LIKEI")
|
||||
.eq(OrderPurchaseHistory::getSysOrigin, "BZIZI")
|
||||
.list();
|
||||
return CollectionUtils.isNotEmpty(list);
|
||||
}
|
||||
|
||||
@ -171,7 +171,7 @@ public class GameHkysRestController {
|
||||
|
||||
imGroupClient.sendMessageBroadcast(
|
||||
BroadcastGroupMsgBodyCmd.builder()
|
||||
.toPlatform(SysOriginPlatformEnum.LIKEI)
|
||||
.toPlatform(SysOriginPlatformEnum.BZIZI)
|
||||
.type(GroupMessageTypeEnum.GAME_BAISHUN_WIN)
|
||||
.data(build)
|
||||
.build()
|
||||
@ -246,7 +246,7 @@ public class GameHkysRestController {
|
||||
receiverCmd.setDimension(RankingDimension.GAME_WIN.getCode());
|
||||
receiverCmd.setIncrementQuantity(request.getCoin());
|
||||
receiverCmd.setBizNo(request.getGameId());
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
rankingActivityService.accumulateRankingData(receiverCmd);
|
||||
|
||||
//游戏王日榜
|
||||
|
||||
@ -155,7 +155,7 @@ public class LotteryDrawExe {
|
||||
.userId(userId)
|
||||
.amount(PennyAmount.ofDollar(activity.getCoinCost().longValue()))
|
||||
.eventId(activity.getId())
|
||||
.sysOrigin(SysOriginPlatformEnum.LIKEI)
|
||||
.sysOrigin(SysOriginPlatformEnum.BZIZI)
|
||||
.origin(GoldOrigin.CP_LOTTERY)
|
||||
.build();
|
||||
ResponseAssert.requiredSuccess(walletGoldClient.changeBalance(build));
|
||||
|
||||
@ -541,7 +541,7 @@ public class LotteryMultiDrawExe {
|
||||
.userId(userId)
|
||||
.amount(PennyAmount.ofDollar(amount.longValue()))
|
||||
.eventId(activityId)
|
||||
.sysOrigin(SysOriginPlatformEnum.LIKEI)
|
||||
.sysOrigin(SysOriginPlatformEnum.BZIZI)
|
||||
.origin(GoldOrigin.CP_LOTTERY)
|
||||
.build();
|
||||
ResponseAssert.requiredSuccess(walletGoldClient.changeBalance(build));
|
||||
|
||||
@ -346,7 +346,7 @@ public class TeamBdMemberBillListQryExe {
|
||||
ResultResponse<List<BatchUserRechargeStatisticsDTO>> response =
|
||||
inAppPurchaseDetailsClient.batchUserRechargeStatistics(
|
||||
memberIds,
|
||||
SysOriginPlatformEnum.LIKEI.name(),
|
||||
SysOriginPlatformEnum.BZIZI.name(),
|
||||
startTime,
|
||||
endTime
|
||||
);
|
||||
|
||||
@ -125,7 +125,7 @@ public class PropCouponUseCmdExe {
|
||||
|
||||
case NOBLE_VIP:
|
||||
// 赠送VIP(贵族VIP)
|
||||
PropsNobleVipAbilityDTO vipAbility = getVipAbilityBySysOriginSourceId(propId, SysOriginPlatformEnum.LIKEI.name());
|
||||
PropsNobleVipAbilityDTO vipAbility = getVipAbilityBySysOriginSourceId(propId, SysOriginPlatformEnum.BZIZI.name());
|
||||
giveProps(userId, propId, ConsolePropsTypeEnum.NOBLE_VIP.getName(), validDays);
|
||||
|
||||
if (Objects.nonNull(vipAbility.getCarId()) && !Objects
|
||||
|
||||
@ -224,7 +224,7 @@ public class SendRoomRedPacketCmdExe {
|
||||
if (cmd.getTotalAmount() >= 10000) {
|
||||
imGroupClient.sendMessageBroadcast(
|
||||
BroadcastGroupMsgBodyCmd.builder()
|
||||
.toPlatform(SysOriginPlatformEnum.LIKEI)
|
||||
.toPlatform(SysOriginPlatformEnum.BZIZI)
|
||||
.type(GroupMessageTypeEnum.ROOM_RED_PACKET)
|
||||
.data(build)
|
||||
.build()
|
||||
|
||||
@ -96,7 +96,7 @@ public class SendUserRedPacketCmdExe {
|
||||
}
|
||||
|
||||
ConsumptionLevel consumptionLevel = consumptionLevelService.getByUserId(cmd.getReqUserId());
|
||||
Integer level = LevelUtils.getWealthLevel(SysOriginPlatformEnum.LIKEI, consumptionLevel.getConsumptionGolds().longValue()).getLevel();
|
||||
Integer level = LevelUtils.getWealthLevel(SysOriginPlatformEnum.BZIZI, consumptionLevel.getConsumptionGolds().longValue()).getLevel();
|
||||
ResponseAssert.isTrue(OtherErrorCode.USER_WEALTH_NEED_THAN_10, level >= 10);
|
||||
|
||||
boolean eqRegion = userRegionGateway.checkEqRegion(cmd.getReqUserId(), cmd.getReceiverUserId());
|
||||
|
||||
@ -186,7 +186,7 @@ public class RocketLaunchCmdExe {
|
||||
// build.put("toLevel", toLevel);
|
||||
imGroupClient.sendMessageBroadcast(
|
||||
BroadcastGroupMsgBodyCmd.builder()
|
||||
.toPlatform(SysOriginPlatformEnum.LIKEI)
|
||||
.toPlatform(SysOriginPlatformEnum.BZIZI)
|
||||
.type(GroupMessageTypeEnum.ROCKET_ENERGY_LAUNCH)
|
||||
.data(build)
|
||||
.build()
|
||||
|
||||
@ -256,7 +256,7 @@ public class RocketRewardClaimCmdExe {
|
||||
.opsIncome()
|
||||
.userId(userId)
|
||||
.eventId(bizNo)
|
||||
.sysOrigin(SysOriginPlatformEnum.LIKEI)
|
||||
.sysOrigin(SysOriginPlatformEnum.BZIZI)
|
||||
.origin(GoldOrigin.ROCKET_REWARD)
|
||||
.originDescribe(GoldOrigin.ROCKET_REWARD.name())
|
||||
.amount(amount)
|
||||
|
||||
@ -104,7 +104,7 @@ public class RoomThemeSwitchUseCmdExe {
|
||||
}
|
||||
|
||||
private PropsCommodityStore getThemeStoreBySourceId(SwitchUseThemeCmd cmd) {
|
||||
return propsCommodityStoreService.getBySourceId(SysOriginPlatformEnum.LIKEI, cmd.getThemeId(),
|
||||
return propsCommodityStoreService.getBySourceId(SysOriginPlatformEnum.BZIZI, cmd.getThemeId(),
|
||||
PropsCommodityType.THEME.name());
|
||||
}
|
||||
|
||||
|
||||
@ -152,7 +152,7 @@ public class SignCheckInExe {
|
||||
.setTrackId(config.getGroupId())
|
||||
.setAcceptUserId(userId)
|
||||
.setOrigin(SendPropsOrigin.SIGN_IN_REWARD)
|
||||
.setSysOrigin(SysOriginPlatformEnum.LIKEI)
|
||||
.setSysOrigin(SysOriginPlatformEnum.BZIZI)
|
||||
.setPrizes(Collections.singletonList(new PrizeDescribe()
|
||||
.setTrackId(config.getGroupId())
|
||||
.setType(config.getType())
|
||||
|
||||
@ -47,7 +47,7 @@ public class SignInStatusQueryExe {
|
||||
);
|
||||
|
||||
Set<Long> groupIdSet = configs.stream().map(SignInDailyConfig::getResourceGroupId).collect(Collectors.toSet());
|
||||
Map<Long, ActivityPropsGroup> propsGroupMap = activitySourceGroupGateway.mapActivityPropsGroup(SysOriginPlatformEnum.LIKEI.name(), groupIdSet);
|
||||
Map<Long, ActivityPropsGroup> propsGroupMap = activitySourceGroupGateway.mapActivityPropsGroup(SysOriginPlatformEnum.BZIZI.name(), groupIdSet);
|
||||
|
||||
Map<Integer, UserSignInRecord> recordMap = records.stream()
|
||||
.collect(Collectors.toMap(UserSignInRecord::getDayIndex, r -> r));
|
||||
|
||||
@ -155,7 +155,7 @@ public class SupplementCheckInExe {
|
||||
.setTrackId(config.getGroupId())
|
||||
.setAcceptUserId(userId)
|
||||
.setOrigin(SendPropsOrigin.SIGN_IN_REWARD)
|
||||
.setSysOrigin(SysOriginPlatformEnum.LIKEI)
|
||||
.setSysOrigin(SysOriginPlatformEnum.BZIZI)
|
||||
.setPrizes(Collections.singletonList(new PrizeDescribe()
|
||||
.setTrackId(config.getGroupId())
|
||||
.setType(config.getType())
|
||||
|
||||
@ -163,7 +163,7 @@ public class ManagerApprovalNotPassCmdExe {
|
||||
private void approvalUserAccount(ManagerApprovalCmd cmd) {
|
||||
if (cmd.checkApprovalUserAccountFreeze()) {
|
||||
UserConsumptionLevel userLevel = userProfileGateway.getUserConsumptionLevel(
|
||||
SysOriginPlatformEnum.valueOf("LIKEI"),
|
||||
SysOriginPlatformEnum.valueOf("BZIZI"),
|
||||
cmd.getBeApprovalUserId());
|
||||
|
||||
checkUserLevel(cmd, userLevel);
|
||||
|
||||
@ -30,7 +30,7 @@ public class UserBeautifulNumberApplyCmdExe {
|
||||
String account = cmd.getAccount();
|
||||
Long userId = cmd.getReqUserId();
|
||||
|
||||
UserConsumptionLevel consumptionLevel = userProfileGateway.getUserConsumptionLevel(SysOriginPlatformEnum.LIKEI, userId);
|
||||
UserConsumptionLevel consumptionLevel = userProfileGateway.getUserConsumptionLevel(SysOriginPlatformEnum.BZIZI, userId);
|
||||
Integer wealthLevel = consumptionLevel.getWealthLevel();
|
||||
|
||||
// (1) 财富等级>=10级校验
|
||||
|
||||
@ -158,7 +158,7 @@ public class GameBurstCrystalCommon {
|
||||
try {
|
||||
|
||||
// 发送奖励
|
||||
if (Objects.equals(cmd.getSysOrigin().name(), SysOriginPlatformEnum.LIKEI.name()) || Objects.equals(cmd.getSysOrigin().name(), SysOriginPlatformEnum.TARAB.name())) {
|
||||
if (Objects.equals(cmd.getSysOrigin().name(), SysOriginPlatformEnum.BZIZI.name()) || Objects.equals(cmd.getSysOrigin().name(), SysOriginPlatformEnum.TARAB.name())) {
|
||||
sendRewardTwoFun(cmd, processing, ruleConfig, ruleContent.getLevel());
|
||||
} else {
|
||||
sendReward(cmd, processing, ruleConfig);
|
||||
|
||||
@ -455,7 +455,7 @@ public class GameLuckyGiftCommon {
|
||||
receiverCmd.setDimension(RankingDimension.CONSUME_AMOUNT.getCode());
|
||||
receiverCmd.setIncrementQuantity(actualAmount);
|
||||
receiverCmd.setBizNo(IdWorkerUtils.getIdStr());
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
rankingActivityService.accumulateRankingData(receiverCmd);
|
||||
}
|
||||
|
||||
|
||||
@ -89,7 +89,7 @@ public class GameKingRewardListener implements MessageListener {
|
||||
|
||||
// 获取活动配置
|
||||
AppExtCommand cmd = new AppExtCommand();
|
||||
cmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
cmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
ActivityConfigVO activityConfig = weekKingQueenService.getEffectiveActivity(cmd, templateId);
|
||||
if (activityConfig == null || activityConfig.getConfig() == null) {
|
||||
log.warn("活动配置不存在, templateId: {}", templateId);
|
||||
|
||||
@ -704,7 +704,7 @@ public class GiftCountStrategy implements GiftStrategy {
|
||||
private Long getActualAmount(GiftValue giftValue, BigDecimal acceptAmount) {
|
||||
|
||||
if (isLuckyGift(giftValue)) {
|
||||
BigDecimal ratio = gameLuckyGiftCommon.getLuckyGiftShareRatio(SysOriginPlatformEnum.LIKEI.name());
|
||||
BigDecimal ratio = gameLuckyGiftCommon.getLuckyGiftShareRatio(SysOriginPlatformEnum.BZIZI.name());
|
||||
return acceptAmount.multiply(ratio).setScale(0, RoundingMode.DOWN).longValue();
|
||||
}
|
||||
|
||||
|
||||
@ -480,7 +480,7 @@ public class RankCountStrategy implements GiftStrategy {
|
||||
receiverCmd.setDimension(RankingDimension.CONSUME_AMOUNT.getCode());
|
||||
receiverCmd.setIncrementQuantity(actualAmount);
|
||||
receiverCmd.setBizNo(runningWater.getId().toString());
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
rankingActivityService.accumulateRankingData(receiverCmd);
|
||||
}
|
||||
|
||||
|
||||
@ -372,7 +372,7 @@ public class TaskListener implements MessageListener {
|
||||
// 发送道具
|
||||
/*propsActivityCnfClient.sendActivityReward(new SendActivityRewardCmd()
|
||||
.setTrackId(IdWorkerUtils.getId())
|
||||
.setSysOrigin(SysOriginPlatformEnum.LIKEI)
|
||||
.setSysOrigin(SysOriginPlatformEnum.BZIZI)
|
||||
.setAcceptUserId(eventBody.getUserId())
|
||||
.setSourceGroupId(userTaskProgress.getRewardId())
|
||||
.setOrigin(SendPropsOrigin.DAILY_TASK_REWARD)
|
||||
@ -423,7 +423,7 @@ public class TaskListener implements MessageListener {
|
||||
.build());
|
||||
|
||||
inviteUserSummaryService.incrCommission(userInviteUser.getUserId(), BigDecimal.valueOf(gold));
|
||||
inviteUserRechargeCommissionService.add(SysOriginPlatformEnum.LIKEI.name(), userInviteUser.getUserId(),
|
||||
inviteUserRechargeCommissionService.add(SysOriginPlatformEnum.BZIZI.name(), userInviteUser.getUserId(),
|
||||
userInviteUser.getInviteUserId(), BigDecimal.valueOf(gold));
|
||||
|
||||
recordRanking(userInviteUser.getUserId(), gold);
|
||||
@ -438,7 +438,7 @@ public class TaskListener implements MessageListener {
|
||||
|
||||
private void recordRanking(Long userId, Long quantity) {
|
||||
RankingActivityRecord record = new RankingActivityRecord();
|
||||
record.setSysOrigin(SysOriginPlatformEnum.LIKEI.name());
|
||||
record.setSysOrigin(SysOriginPlatformEnum.BZIZI.name());
|
||||
record.setUserId(userId);
|
||||
record.setUserSex(1);
|
||||
record.setActivityType(RankingActivityType.INVITE);
|
||||
|
||||
@ -54,7 +54,7 @@ public class RocketImPushManager {
|
||||
try {
|
||||
imGroupClient.sendMessageBroadcast(
|
||||
BroadcastGroupMsgBodyCmd.builder()
|
||||
.toPlatform(SysOriginPlatformEnum.LIKEI)
|
||||
.toPlatform(SysOriginPlatformEnum.BZIZI)
|
||||
// .type(GroupMessageTypeEnum.ROCKET_ENERGY_LAUNCH)
|
||||
.data(status)
|
||||
.build()
|
||||
|
||||
@ -116,7 +116,7 @@ public class WeeklyRewardsSentManager {
|
||||
|
||||
log.warn("[execute] 每周奖励统一发送 start:{}", LocalDateTimeUtils.nowFormat("yyyy-MM-dd"));
|
||||
|
||||
List<SysOriginPlatformEnum> list = List.of(SysOriginPlatformEnum.LIKEI);
|
||||
List<SysOriginPlatformEnum> list = List.of(SysOriginPlatformEnum.BZIZI);
|
||||
|
||||
list.forEach(sysOriginPlatformEnum -> {
|
||||
|
||||
@ -211,7 +211,7 @@ public class WeeklyRewardsSentManager {
|
||||
Long activityId = activityConfigDTO.getId();
|
||||
String lastWeekDate = getLastWeekDate();
|
||||
|
||||
String sysOrigin = SysOriginPlatformEnum.LIKEI.name();
|
||||
String sysOrigin = SysOriginPlatformEnum.BZIZI.name();
|
||||
// 获取枚举
|
||||
RankingCycleType cycleType = RankingCycleType.WEEKLY;
|
||||
// 4. 获取奖励配置并更新
|
||||
@ -227,15 +227,15 @@ public class WeeklyRewardsSentManager {
|
||||
|
||||
// 发放活动奖励
|
||||
if (isKingGames(activityConfigDTO)) {
|
||||
sendCustomRankingActivityRewards(SysOriginPlatformEnum.LIKEI, activityId, records, kingRewardList);
|
||||
sendCustomRankingActivityRewards(SysOriginPlatformEnum.BZIZI, activityId, records, kingRewardList);
|
||||
}
|
||||
|
||||
if (isRamadan(activityConfigDTO)) {
|
||||
sendRamadanRankingActivityRewards(SysOriginPlatformEnum.LIKEI, activityId, records, kingRewardList);
|
||||
sendRamadanRankingActivityRewards(SysOriginPlatformEnum.BZIZI, activityId, records, kingRewardList);
|
||||
}
|
||||
|
||||
else {
|
||||
sendRankingActivityRewards(SysOriginPlatformEnum.LIKEI, activityId, records, kingRewardList);
|
||||
sendRankingActivityRewards(SysOriginPlatformEnum.BZIZI, activityId, records, kingRewardList);
|
||||
}
|
||||
|
||||
log.info("上周{}活动奖励发放完成, 活动ID: {}", activityConfigDTO.getRemark(), activityId);
|
||||
@ -436,7 +436,7 @@ public class WeeklyRewardsSentManager {
|
||||
private ActivityConfigDTO getActivityConfig(Long templateId, String activityType) {
|
||||
try {
|
||||
ActivityConfigBackQryCmd query = new ActivityConfigBackQryCmd();
|
||||
query.setSysOrigin(SysOriginPlatformEnum.LIKEI.name());
|
||||
query.setSysOrigin(SysOriginPlatformEnum.BZIZI.name());
|
||||
query.setTemplateId(templateId);
|
||||
return ResponseAssert.requiredSuccess(sysActivityConfigClient.effectiveActivityByTemplate(templateId, activityType));
|
||||
} catch (Exception e) {
|
||||
|
||||
@ -35,7 +35,7 @@ import org.springframework.data.redis.core.StringRedisTemplate;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import static com.red.circle.common.business.core.enums.SysOriginPlatformEnum.LIKEI;
|
||||
import static com.red.circle.common.business.core.enums.SysOriginPlatformEnum.BZIZI;
|
||||
|
||||
/**
|
||||
* 每日任务数据.
|
||||
@ -70,7 +70,7 @@ public class DailyTask {
|
||||
String yesterdayCycleKey = ZonedDateTimeUtils.getAsiaRiyadhYesterday().toString();
|
||||
|
||||
RankingListQueryCmd cmd = new RankingListQueryCmd();
|
||||
cmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
cmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
cmd.setCycleKey(yesterdayCycleKey);
|
||||
|
||||
List<RankingUserVO> top3 = kingGamesDailyTopThreeQryExe.execute(cmd);
|
||||
@ -98,7 +98,7 @@ public class DailyTask {
|
||||
.userId(user.getUserId())
|
||||
.amount(PennyAmount.ofDollar(reward))
|
||||
.eventId(eventId)
|
||||
.sysOrigin(LIKEI)
|
||||
.sysOrigin(BZIZI)
|
||||
.origin(GoldOrigin.GAME_KING_AWARD)
|
||||
.build());
|
||||
log.info("[GameKingDaily] 发放成功 userId={} rank={} reward={}", user.getUserId(), user.getRank(), reward);
|
||||
@ -125,7 +125,7 @@ public class DailyTask {
|
||||
|
||||
ImmutableKeyValuePair<String, String> valuePair = ImmutableKeyValuePair.of("PURCHASE_NOBLE_VIP_GIVEAWAY", "Give Noble");
|
||||
try {
|
||||
List<PropsStoreCommodity> propsStoreCommodities = propsStoreGateway.listReleaseStoreCommodity(LIKEI, PropsCommodityType.NOBLE_VIP);
|
||||
List<PropsStoreCommodity> propsStoreCommodities = propsStoreGateway.listReleaseStoreCommodity(BZIZI, PropsCommodityType.NOBLE_VIP);
|
||||
|
||||
// 按照VIP等级从大到小排序
|
||||
List<PropsStoreCommodity> commodityList = propsStoreCommodities.stream()
|
||||
@ -159,7 +159,7 @@ public class DailyTask {
|
||||
.appIncome()
|
||||
.userId(userId)
|
||||
.eventId(propsStoreCommodity.getId())
|
||||
.sysOrigin(LIKEI)
|
||||
.sysOrigin(BZIZI)
|
||||
.origin(valuePair.getKey())
|
||||
.originDescribe(valuePair.getValue())
|
||||
.amount(propsStoreCommodity.getNobleVipAbility().getLoginRewardsAmount())
|
||||
|
||||
@ -43,7 +43,7 @@ public class DiamondToCoinsTask {
|
||||
@TaskCacheLock(key = "USER_SALARY_DIAMOND_BALANCE", expireSecond = 86400)
|
||||
public void diamondToCoins() {
|
||||
|
||||
Map<Long, BigDecimal> userIdBalanceMap = salaryDiamondBalanceClient.mapBalanceBySysOrigin(SysOriginPlatformEnum.LIKEI.name()).getBody();
|
||||
Map<Long, BigDecimal> userIdBalanceMap = salaryDiamondBalanceClient.mapBalanceBySysOrigin(SysOriginPlatformEnum.BZIZI.name()).getBody();
|
||||
if (CollectionUtils.isEmpty(userIdBalanceMap)) {
|
||||
log.warn("【钻石转金币定时器】:LIKEI 系统不存在钻石余额数据");
|
||||
return;
|
||||
|
||||
@ -37,7 +37,7 @@ public class EmptyRoomCleanTask {
|
||||
public void cleanEmptyRooms() {
|
||||
try {
|
||||
// 获取所有活跃房间
|
||||
List<ActiveVoiceRoom> allRooms = activeVoiceRoomService.listDiscover(SysOriginPlatformEnum.LIKEI.name(),true,"",null,200);
|
||||
List<ActiveVoiceRoom> allRooms = activeVoiceRoomService.listDiscover(SysOriginPlatformEnum.BZIZI.name(),true,"",null,200);
|
||||
if (CollectionUtils.isEmpty(allRooms)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@ -132,7 +132,7 @@ public class RoomRedPacketExpireTask {
|
||||
.userId(userId)
|
||||
.amount(PennyAmount.ofDollar(remainAmount))
|
||||
.eventId(packetId + "_refund")
|
||||
.sysOrigin(SysOriginPlatformEnum.LIKEI)
|
||||
.sysOrigin(SysOriginPlatformEnum.BZIZI)
|
||||
.origin(GoldOrigin.ROOM_RED_PACKET)
|
||||
.build();
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ public class UpdateStartPageUserTask {
|
||||
log.warn("========== 更新启动页用户定时任务开始 ==========");
|
||||
|
||||
try {
|
||||
String sysOrigin = SysOriginPlatformEnum.LIKEI.name();
|
||||
String sysOrigin = SysOriginPlatformEnum.BZIZI.name();
|
||||
String lastWeekDate = getLastWeekDate();
|
||||
|
||||
Long topUserId = getLastWeekTopUser(sysOrigin, lastWeekDate);
|
||||
@ -85,7 +85,7 @@ public class UpdateStartPageUserTask {
|
||||
long startTime = System.currentTimeMillis();
|
||||
|
||||
try {
|
||||
String sysOrigin = SysOriginPlatformEnum.LIKEI.name();
|
||||
String sysOrigin = SysOriginPlatformEnum.BZIZI.name();
|
||||
|
||||
List<WeekCpValueCount> topList = weekCpValueCountService.listLastWeekTop(sysOrigin, 1);
|
||||
|
||||
|
||||
@ -107,7 +107,7 @@ public class UserRedPacketExpireTask {
|
||||
.userId(userId)
|
||||
.amount(PennyAmount.ofDollar(amount))
|
||||
.eventId(packetId + "_refund")
|
||||
.sysOrigin("LIKEI")
|
||||
.sysOrigin("BZIZI")
|
||||
.origin(GoldOrigin.USER_RED_PACKET)
|
||||
.build();
|
||||
|
||||
|
||||
@ -53,7 +53,7 @@ public class GameKingRewardTask {
|
||||
cmd.setCycleKey(ZonedDateTimeAsiaRiyadhUtils.nowWeekMondayToInt().toString());
|
||||
cmd.setActivityType(RankingActivityType.KING_GAMES.getCode());
|
||||
cmd.setTemplateId("2001207026499137537");
|
||||
cmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
cmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
|
||||
RankingListQueryCmd top4Cmd = new RankingListQueryCmd();
|
||||
top4Cmd.setActivityType(cmd.getActivityType());
|
||||
|
||||
@ -48,7 +48,7 @@ public class RamadanRankingBadgeTask {
|
||||
try {
|
||||
// 获取前十名
|
||||
List<RankingActivityRecord> top10 = rankingActivityGateway.getRankingList(
|
||||
SysOriginPlatformEnum.LIKEI.name(),
|
||||
SysOriginPlatformEnum.BZIZI.name(),
|
||||
RankingActivityType.RAMADAN,
|
||||
RankingCycleType.WEEKLY,
|
||||
ZonedDateTimeAsiaRiyadhUtils.nowWeekMondayToInt().toString(),
|
||||
|
||||
@ -63,7 +63,7 @@ public class SpringFestivalRechargeRewardTask {
|
||||
propsActivityClient.sendActivityReward(new SendActivityRewardCmd()
|
||||
.setTrackId(ACTIVITY_ID)
|
||||
.setOrigin(SendPropsOrigin.RANKING_ACTIVITY)
|
||||
.setSysOrigin(SysOriginPlatformEnum.LIKEI)
|
||||
.setSysOrigin(SysOriginPlatformEnum.BZIZI)
|
||||
.setSourceGroupId(rewardGroupId)
|
||||
.setAcceptUserId(userId)
|
||||
);
|
||||
|
||||
@ -49,7 +49,7 @@ public class CpRankingBadgeTask {
|
||||
public void sendWeekRankingReward() {
|
||||
try {
|
||||
// 1. 获取本周前三名CP对
|
||||
List<WeekCpValueCount> thisWeekTop3 = weekCpValueCountService.listThisWeekTop(SysOriginPlatformEnum.LIKEI.name(), 3);
|
||||
List<WeekCpValueCount> thisWeekTop3 = weekCpValueCountService.listThisWeekTop(SysOriginPlatformEnum.BZIZI.name(), 3);
|
||||
if (CollectionUtils.isEmpty(thisWeekTop3)) {
|
||||
log.warn("CP排名徽章任务:本周前三名数据为空");
|
||||
return;
|
||||
|
||||
@ -36,7 +36,7 @@ public class CpRankingRewardTask {
|
||||
log.warn("========== CP周榜奖励发放定时任务开始 ==========");
|
||||
|
||||
try {
|
||||
List<SysOriginPlatformEnum> platforms = List.of(SysOriginPlatformEnum.LIKEI);
|
||||
List<SysOriginPlatformEnum> platforms = List.of(SysOriginPlatformEnum.BZIZI);
|
||||
|
||||
int successCount = 0;
|
||||
int errorCount = 0;
|
||||
@ -83,7 +83,7 @@ public class CpRankingRewardTask {
|
||||
log.warn("========== 检测到赛季切换,开始发放上赛季奖励 ==========");
|
||||
log.warn("[CP赛季榜] 赛季切换: {} -> {}", lastSeasonCycleKey, currentSeasonCycleKey);
|
||||
|
||||
List<SysOriginPlatformEnum> platforms = List.of(SysOriginPlatformEnum.LIKEI);
|
||||
List<SysOriginPlatformEnum> platforms = List.of(SysOriginPlatformEnum.BZIZI);
|
||||
|
||||
int successCount = 0;
|
||||
int errorCount = 0;
|
||||
|
||||
@ -106,7 +106,7 @@ public class AdminSalarySettlementServiceImpl implements AdminSalarySettlementSe
|
||||
AdminSalarySettlementRecord record = new AdminSalarySettlementRecord();
|
||||
record.setId(IdWorkerUtils.getIdStr());
|
||||
record.setTimeId(IdWorkerUtils.getId());
|
||||
record.setSysOrigin(SysOriginPlatformEnum.LIKEI.name());
|
||||
record.setSysOrigin(SysOriginPlatformEnum.BZIZI.name());
|
||||
record.setAdminUserId(adminUserId);
|
||||
record.setBillBelong(billBelong);
|
||||
record.setBillTitle(billTitle);
|
||||
|
||||
@ -121,7 +121,7 @@ public class BdLeaderSalarySettlementServiceImpl implements BdLeaderSalarySettle
|
||||
BdLeaderSalarySettlementRecord record = new BdLeaderSalarySettlementRecord();
|
||||
record.setId(IdWorkerUtils.getIdStr());
|
||||
record.setTimeId(IdWorkerUtils.getId());
|
||||
record.setSysOrigin(SysOriginPlatformEnum.LIKEI.name());
|
||||
record.setSysOrigin(SysOriginPlatformEnum.BZIZI.name());
|
||||
record.setBdLeaderUserId(bdLeaderUserId);
|
||||
record.setBillBelong(billBelong);
|
||||
record.setBillTitle(billTitle);
|
||||
|
||||
@ -243,7 +243,7 @@ public class BdSalarySettlementServiceImpl implements BdSalarySettlementService
|
||||
ResultResponse<List<BatchUserRechargeStatisticsDTO>> response =
|
||||
inAppPurchaseDetailsClientApi.batchUserRechargeStatistics(
|
||||
new ArrayList<>(allUserIds),
|
||||
SysOriginPlatformEnum.LIKEI.name(),
|
||||
SysOriginPlatformEnum.BZIZI.name(),
|
||||
startTime,
|
||||
endTime
|
||||
);
|
||||
@ -352,7 +352,7 @@ public class BdSalarySettlementServiceImpl implements BdSalarySettlementService
|
||||
ResultResponse<List<BatchUserRechargeStatisticsDTO>> response =
|
||||
inAppPurchaseDetailsClientApi.batchUserRechargeStatistics(
|
||||
userIds,
|
||||
SysOriginPlatformEnum.LIKEI.name(),
|
||||
SysOriginPlatformEnum.BZIZI.name(),
|
||||
startTime,
|
||||
endTime
|
||||
);
|
||||
@ -387,7 +387,7 @@ public class BdSalarySettlementServiceImpl implements BdSalarySettlementService
|
||||
BdSalarySettlementRecord record = new BdSalarySettlementRecord();
|
||||
record.setId(IdWorkerUtils.getIdStr());
|
||||
record.setTimeId(IdWorkerUtils.getId());
|
||||
record.setSysOrigin(SysOriginPlatformEnum.LIKEI.name());
|
||||
record.setSysOrigin(SysOriginPlatformEnum.BZIZI.name());
|
||||
record.setBdUserId(bdUserId);
|
||||
record.setBillBelong(billBelong);
|
||||
record.setBillTitle(billTitle);
|
||||
|
||||
@ -81,7 +81,7 @@ public class GameActivityService {
|
||||
receiverCmd.setDimension(RankingDimension.GAME_WIN.getCode());
|
||||
receiverCmd.setIncrementQuantity(rewardAmount);
|
||||
receiverCmd.setBizNo(gameId);
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
rankingActivityService.accumulateRankingData(receiverCmd);
|
||||
}
|
||||
|
||||
|
||||
@ -285,7 +285,7 @@ public class GameBaishunServiceImpl implements GameBaishunService {
|
||||
|
||||
imGroupClient.sendMessageBroadcast(
|
||||
BroadcastGroupMsgBodyCmd.builder()
|
||||
.toPlatform(SysOriginPlatformEnum.LIKEI)
|
||||
.toPlatform(SysOriginPlatformEnum.BZIZI)
|
||||
.type(GroupMessageTypeEnum.GAME_BAISHUN_WIN)
|
||||
.data(build)
|
||||
.build()
|
||||
@ -322,7 +322,7 @@ public class GameBaishunServiceImpl implements GameBaishunService {
|
||||
receiverCmd.setDimension(RankingDimension.GAME_WIN.getCode());
|
||||
receiverCmd.setIncrementQuantity(request.getCurrencyDiff());
|
||||
receiverCmd.setBizNo(request.getGameRoundId());
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
rankingActivityService.accumulateRankingData(receiverCmd);
|
||||
|
||||
//游戏王日榜
|
||||
|
||||
@ -391,7 +391,7 @@ public class HotGameServiceImpl implements HotGameService {
|
||||
receiverCmd.setDimension(RankingDimension.GAME_WIN.getCode());
|
||||
receiverCmd.setIncrementQuantity(request.getCoin());
|
||||
receiverCmd.setBizNo(request.getGameId());
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
rankingActivityService.accumulateRankingData(receiverCmd);
|
||||
}
|
||||
}
|
||||
@ -431,7 +431,7 @@ public class HotGameServiceImpl implements HotGameService {
|
||||
receiverCmd.setDimension(RankingDimension.GAME_WIN.getCode());
|
||||
receiverCmd.setIncrementQuantity(param.getCoin());
|
||||
receiverCmd.setBizNo(param.getGameId());
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
rankingActivityService.accumulateRankingData(receiverCmd);
|
||||
|
||||
//游戏王日榜
|
||||
@ -460,7 +460,7 @@ public class HotGameServiceImpl implements HotGameService {
|
||||
|
||||
imGroupClient.sendMessageBroadcast(
|
||||
BroadcastGroupMsgBodyCmd.builder()
|
||||
.toPlatform(SysOriginPlatformEnum.LIKEI)
|
||||
.toPlatform(SysOriginPlatformEnum.BZIZI)
|
||||
.type(GroupMessageTypeEnum.GAME_BAISHUN_WIN)
|
||||
.data(build)
|
||||
.build()
|
||||
|
||||
@ -286,7 +286,7 @@ public class YomiGameServiceImpl implements YomiGameService {
|
||||
return;
|
||||
}
|
||||
|
||||
BigDecimal cost = enumConfigCacheService.getValueBigDecimal(EnumConfigKey.GAME_BROADCAST_AMOUNT, SysOriginPlatformEnum.LIKEI.name()) ;
|
||||
BigDecimal cost = enumConfigCacheService.getValueBigDecimal(EnumConfigKey.GAME_BROADCAST_AMOUNT, SysOriginPlatformEnum.BZIZI.name()) ;
|
||||
int thresholdAmount = Optional.ofNullable(cost).orElse(new BigDecimal("5000")).intValue();
|
||||
if (rewardAmount < thresholdAmount) {
|
||||
return;
|
||||
@ -300,7 +300,7 @@ public class YomiGameServiceImpl implements YomiGameService {
|
||||
|
||||
imGroupClient.sendMessageBroadcast(
|
||||
BroadcastGroupMsgBodyCmd.builder()
|
||||
.toPlatform(SysOriginPlatformEnum.LIKEI)
|
||||
.toPlatform(SysOriginPlatformEnum.BZIZI)
|
||||
.type(GroupMessageTypeEnum.GAME_BAISHUN_WIN)
|
||||
.data(build)
|
||||
.build()
|
||||
@ -333,7 +333,7 @@ public class YomiGameServiceImpl implements YomiGameService {
|
||||
receiverCmd.setDimension(RankingDimension.GAME_WIN.getCode());
|
||||
receiverCmd.setIncrementQuantity(rewardAmount.longValue());
|
||||
receiverCmd.setBizNo(gameId);
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
rankingActivityService.accumulateRankingData(receiverCmd);
|
||||
|
||||
//游戏王日榜
|
||||
|
||||
@ -267,7 +267,7 @@ public class PropsSendCommon {
|
||||
Map<String, Object> map = new HashMap<>();
|
||||
map.put("propType", conf.getDetailType());
|
||||
if (BadgeConfigTypeEnum.of(conf.getDetailType())) {
|
||||
BadgePictureConfig badgePictureConfig = badgePictureConfigService.getByBadgeId(SysOriginPlatformEnum.LIKEI.name(), propsId);
|
||||
BadgePictureConfig badgePictureConfig = badgePictureConfigService.getByBadgeId(SysOriginPlatformEnum.BZIZI.name(), propsId);
|
||||
url = badgePictureConfig != null ? badgePictureConfig.getSelectUrl() : "";
|
||||
}
|
||||
officialNoticeClient.send(
|
||||
|
||||
@ -135,7 +135,7 @@ public class InviteUserGatewayImpl implements InviteUserGateway {
|
||||
|
||||
private void recordRanking(Long userId, Long quantity) {
|
||||
RankingActivityRecord record = new RankingActivityRecord();
|
||||
record.setSysOrigin(SysOriginPlatformEnum.LIKEI.name());
|
||||
record.setSysOrigin(SysOriginPlatformEnum.BZIZI.name());
|
||||
record.setUserId(userId);
|
||||
record.setUserSex(1);
|
||||
record.setActivityType(RankingActivityType.INVITE);
|
||||
|
||||
@ -527,7 +527,7 @@ public class UserProfileGatewayImpl implements UserProfileGateway {
|
||||
}
|
||||
|
||||
private boolean inWhiteList(Long userId) {
|
||||
EnumConfigDTO configDTO = enumConfigCacheService.getByCode("LOGIN_WHITE_CONFIG", "LIKEI");
|
||||
EnumConfigDTO configDTO = enumConfigCacheService.getByCode("LOGIN_WHITE_CONFIG", "BZIZI");
|
||||
String whiteConfig = Optional.ofNullable(configDTO).map(EnumConfigDTO::getVal).orElse(null);
|
||||
UserProfile userProfile = getByUserId(userId);
|
||||
if (whiteConfig == null || userProfile == null) {
|
||||
|
||||
@ -155,7 +155,7 @@ public class NoticeMessageClientServiceImpl implements NoticeMessageClientServic
|
||||
// 发送IM群组广播
|
||||
imGroupClient.sendMessageBroadcast(
|
||||
BroadcastGroupMsgBodyCmd.builder()
|
||||
.toPlatform(SysOriginPlatformEnum.LIKEI)
|
||||
.toPlatform(SysOriginPlatformEnum.BZIZI)
|
||||
.type("notification".equals(noticeMessage.getType()) ? GroupMessageTypeEnum.SYS_ANNOUNCEMENT : GroupMessageTypeEnum.SYS_ACTIVITY)
|
||||
.data(publicMessage)
|
||||
.build());
|
||||
|
||||
@ -147,7 +147,7 @@ public class BdTeamInfoClientServiceImpl implements BdTeamInfoClientService {
|
||||
}
|
||||
|
||||
// 校验新BD Leader是否存在
|
||||
UserProfile userProfile = userProfileGateway.getByAccount(SysOriginPlatformEnum.LIKEI.name(), String.valueOf(cmd.getNewAccount()));
|
||||
UserProfile userProfile = userProfileGateway.getByAccount(SysOriginPlatformEnum.BZIZI.name(), String.valueOf(cmd.getNewAccount()));
|
||||
if (userProfile == null) {
|
||||
throw new RuntimeException("用户不存在");
|
||||
}
|
||||
|
||||
@ -179,7 +179,7 @@ public class InviteUserClientServiceImpl implements InviteUserClientService {
|
||||
.build());
|
||||
|
||||
inviteUserSummaryService.incrCommission(result.getInviterUserId(), BigDecimal.valueOf(gold));
|
||||
inviteUserRechargeCommissionService.add(SysOriginPlatformEnum.LIKEI.name(), result.getInviterUserId(),
|
||||
inviteUserRechargeCommissionService.add(SysOriginPlatformEnum.BZIZI.name(), result.getInviterUserId(),
|
||||
result.getInviteeUserId(), BigDecimal.valueOf(gold));
|
||||
|
||||
recordRanking(result.getInviterUserId(), gold);
|
||||
@ -187,7 +187,7 @@ public class InviteUserClientServiceImpl implements InviteUserClientService {
|
||||
// 道具奖励发给被邀请人B
|
||||
propsActivityClient.sendActivityReward(new SendActivityRewardCmd()
|
||||
.setTrackId(IdWorkerUtils.getId())
|
||||
.setSysOrigin(SysOriginPlatformEnum.LIKEI)
|
||||
.setSysOrigin(SysOriginPlatformEnum.BZIZI)
|
||||
.setAcceptUserId(result.getInviteeUserId())
|
||||
.setSourceGroupId(propsId)
|
||||
.setOrigin(SendPropsOrigin.RECHARGE_7DAY)
|
||||
@ -198,7 +198,7 @@ public class InviteUserClientServiceImpl implements InviteUserClientService {
|
||||
|
||||
private void recordRanking(Long userId, Long quantity) {
|
||||
RankingActivityRecord record = new RankingActivityRecord();
|
||||
record.setSysOrigin(SysOriginPlatformEnum.LIKEI.name());
|
||||
record.setSysOrigin(SysOriginPlatformEnum.BZIZI.name());
|
||||
record.setUserId(userId);
|
||||
record.setUserSex(1);
|
||||
record.setActivityType(RankingActivityType.INVITE);
|
||||
|
||||
@ -45,7 +45,7 @@ public class AnchorTargetTest {
|
||||
|
||||
TeamMemberWorkQryCmd cmd = new TeamMemberWorkQryCmd();
|
||||
cmd.setMemberUserId(userId);
|
||||
cmd.setSysOrigin("LIKEI");
|
||||
cmd.setSysOrigin("BZIZI");
|
||||
List<TeamMemberWorkDTO> execute = listMemberWorkDecay.execute(cmd);
|
||||
|
||||
// 1. 筛选 billStatus = UNPAID 的数据
|
||||
@ -129,7 +129,7 @@ public class AnchorTargetTest {
|
||||
// 将account转换为userId并构建batchDeductMap
|
||||
Map<Long, Long> batchDeductMap = new HashMap<>();
|
||||
map.forEach((account, amount) -> {
|
||||
UserProfile userProfile = userProfileGateway.getByAccount("LIKEI", String.valueOf(account));
|
||||
UserProfile userProfile = userProfileGateway.getByAccount("BZIZI", String.valueOf(account));
|
||||
if (Objects.nonNull(userProfile)) {
|
||||
batchDeductMap.put(userProfile.getId(), amount);
|
||||
} else {
|
||||
@ -209,7 +209,7 @@ public class AnchorTargetTest {
|
||||
private boolean deductSingleAnchorTarget(Long userId, Long deductValue) {
|
||||
TeamMemberWorkQryCmd cmd = new TeamMemberWorkQryCmd();
|
||||
cmd.setMemberUserId(userId);
|
||||
cmd.setSysOrigin("LIKEI");
|
||||
cmd.setSysOrigin("BZIZI");
|
||||
List<TeamMemberWorkDTO> execute = listMemberWorkDecay.execute(cmd);
|
||||
|
||||
// 1. 筛选 billStatus = UNPAID 的数据
|
||||
|
||||
@ -75,7 +75,7 @@ public class BdSettlementTest {
|
||||
// Long bdUserId = 1963790037740466178L;
|
||||
// BdSalarySettlementRecord bdSalarySettlementRecord = new BdSalarySettlementRecord();
|
||||
// bdSalarySettlementRecord.setBillBelong(20251116);
|
||||
// bdSalarySettlementRecord.setSysOrigin("LIKEI");
|
||||
// bdSalarySettlementRecord.setSysOrigin("BZIZI");
|
||||
// bdSalarySettlementRecord.setSettlementSalary(new BigDecimal(111));
|
||||
// bdSalarySettlementRecord.setId(IdWorkerUtils.getIdStr());
|
||||
// issueSalary(bdUserId, bdSalarySettlementRecord);
|
||||
@ -84,7 +84,7 @@ public class BdSettlementTest {
|
||||
Long bdLeaderUserId = 1963790037740466178L;
|
||||
BdLeaderSalarySettlementRecord bdLeaderSalarySettlementRecord = new BdLeaderSalarySettlementRecord();
|
||||
bdLeaderSalarySettlementRecord.setBillBelong(20251116);
|
||||
bdLeaderSalarySettlementRecord.setSysOrigin("LIKEI");
|
||||
bdLeaderSalarySettlementRecord.setSysOrigin("BZIZI");
|
||||
bdLeaderSalarySettlementRecord.setSettlementSalary(new BigDecimal(2));
|
||||
bdLeaderSalarySettlementRecord.setId(IdWorkerUtils.getIdStr());
|
||||
issueSalary(bdLeaderUserId, bdLeaderSalarySettlementRecord);
|
||||
|
||||
@ -118,7 +118,7 @@ public class DailTaskTest {
|
||||
propsActivityClient.sendActivityReward(new SendActivityRewardCmd()
|
||||
.setTrackId(activityId)
|
||||
.setOrigin(SendPropsOrigin.RANKING_ACTIVITY)
|
||||
.setSysOrigin(SysOriginPlatformEnum.LIKEI)
|
||||
.setSysOrigin(SysOriginPlatformEnum.BZIZI)
|
||||
.setSourceGroupId(1995472724921741314L)
|
||||
.setAcceptUserId(userId)
|
||||
);
|
||||
|
||||
@ -108,7 +108,7 @@ public class SpringTest {
|
||||
|
||||
@Test
|
||||
public void testActivityRuleConfig() {
|
||||
List<ActivityRewardPropsDTO> rewardList = singleGroupRewardPoolCommon.listRewardProps("LIKEI", PropsActivityTypeEnum.CONSUMPTION_ACTIVITY);
|
||||
List<ActivityRewardPropsDTO> rewardList = singleGroupRewardPoolCommon.listRewardProps("BZIZI", PropsActivityTypeEnum.CONSUMPTION_ACTIVITY);
|
||||
System.out.println(rewardList);
|
||||
}
|
||||
|
||||
@ -121,7 +121,7 @@ public class SpringTest {
|
||||
|
||||
@Test
|
||||
public void testCompletedFirstCharge() {
|
||||
completedFirstCharge(1957345312961527809L, "LIKEI");
|
||||
completedFirstCharge(1957345312961527809L, "BZIZI");
|
||||
}
|
||||
|
||||
private void completedFirstCharge(Long userId, String sysOrigin) {
|
||||
@ -152,7 +152,7 @@ public class SpringTest {
|
||||
public void testGameRanking() {
|
||||
String gameId = "1083";
|
||||
|
||||
GameListConfig gameListConfig = gameListConfigService.getByGameId(gameId, GameOriginEnum.BAISHUN.name(), "LIKEI");
|
||||
GameListConfig gameListConfig = gameListConfigService.getByGameId(gameId, GameOriginEnum.BAISHUN.name(), "BZIZI");
|
||||
|
||||
GameRankingIncrementCmd build = GameRankingIncrementCmd.builder()
|
||||
.gameOrigin(GameOriginEnum.BAISHUN.name())
|
||||
@ -177,7 +177,7 @@ public class SpringTest {
|
||||
receiverCmd.setDimension(RankingDimension.GAME_WIN.getCode());
|
||||
receiverCmd.setIncrementQuantity(111L);
|
||||
receiverCmd.setBizNo("3243k1od");
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
receiverCmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
rankingActivityService.accumulateRankingData(receiverCmd);
|
||||
}
|
||||
|
||||
@ -207,7 +207,7 @@ public class SpringTest {
|
||||
UserProfileDTO userProfile = userProfileAppConvertor.toUserProfileDTO(
|
||||
userProfileGateway.getByUserId(DataTypeUtils.toLong(userId)));
|
||||
|
||||
GameListConfig gameListConfig = gameListConfigService.getByGameId("1090", GameOriginEnum.LINGXIAN.name(), "LIKEI");
|
||||
GameListConfig gameListConfig = gameListConfigService.getByGameId("1090", GameOriginEnum.LINGXIAN.name(), "BZIZI");
|
||||
if (Objects.nonNull(gameListConfig)) {
|
||||
Map<Object, Object> build = OfficialNoticeUtils.buildUserProfile(userProfile);
|
||||
build.put("gameUrl", gameListConfig.getCover());
|
||||
@ -215,7 +215,7 @@ public class SpringTest {
|
||||
|
||||
imGroupClient.sendMessageBroadcast(
|
||||
BroadcastGroupMsgBodyCmd.builder()
|
||||
.toPlatform(SysOriginPlatformEnum.LIKEI)
|
||||
.toPlatform(SysOriginPlatformEnum.BZIZI)
|
||||
.type(GroupMessageTypeEnum.GAME_BAISHUN_WIN)
|
||||
.data(build)
|
||||
.build()
|
||||
|
||||
@ -102,7 +102,7 @@ public class TeamMonthBillTest {
|
||||
TeamProfile teamProfile = teamProfileService.getById(teamId);
|
||||
|
||||
TeamBillCycle teamBillCycle = new TeamBillCycle();
|
||||
teamBillCycle.setSysOrigin("LIKEI");
|
||||
teamBillCycle.setSysOrigin("BZIZI");
|
||||
teamBillCycle.setRegion(teamProfile.getRegion());
|
||||
teamBillCycle.setBillBelong(billBelong);
|
||||
teamBillCycle.setTeamId(teamId);
|
||||
@ -183,12 +183,12 @@ public class TeamMonthBillTest {
|
||||
|
||||
@Test
|
||||
public void weeklyRewardsSent() {
|
||||
weeklyRewardsSentManager.sendLastWeekStarV1(SysOriginPlatformEnum.LIKEI);
|
||||
weeklyRewardsSentManager.sendLastWeekStarV1(SysOriginPlatformEnum.BZIZI);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void weeklyKingQueenSent() {
|
||||
weeklyRewardsSentManager.sendLastWeekKingQueen(SysOriginPlatformEnum.LIKEI);
|
||||
weeklyRewardsSentManager.sendLastWeekKingQueen(SysOriginPlatformEnum.BZIZI);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -65,7 +65,7 @@ public class TeamToFamilyScript {
|
||||
/**
|
||||
* 系统来源
|
||||
*/
|
||||
private static final String SYS_ORIGIN = "LIKEI";
|
||||
private static final String SYS_ORIGIN = "BZIZI";
|
||||
|
||||
/**
|
||||
* 默认家族等级
|
||||
|
||||
@ -32,7 +32,7 @@ public class CpRankingRewardTest {
|
||||
log.info("========== 开始测试发送上周周榜前三奖励 ==========");
|
||||
|
||||
try {
|
||||
SysOriginPlatformEnum platform = SysOriginPlatformEnum.LIKEI;
|
||||
SysOriginPlatformEnum platform = SysOriginPlatformEnum.BZIZI;
|
||||
|
||||
cpRankingRewardManager.sendLastWeekTopReward(platform);
|
||||
|
||||
@ -50,7 +50,7 @@ public class CpRankingRewardTest {
|
||||
log.info("========== 开始测试发送上赛季前三奖励 ==========");
|
||||
|
||||
try {
|
||||
SysOriginPlatformEnum platform = SysOriginPlatformEnum.LIKEI;
|
||||
SysOriginPlatformEnum platform = SysOriginPlatformEnum.BZIZI;
|
||||
|
||||
cpRankingRewardTask.sendSeasonRankingReward();
|
||||
|
||||
|
||||
@ -142,7 +142,7 @@ public class GiftStatisticsTest {
|
||||
public void testUserGiftStatisticsBySysOrigin() {
|
||||
// TODO: 修改参数
|
||||
Long targetUserId = 1234567890L;
|
||||
String sysOrigin = "LIKEI"; // 系统来源
|
||||
String sysOrigin = "BZIZI"; // 系统来源
|
||||
|
||||
Query query = new Query();
|
||||
query.addCriteria(Criteria.where("acceptUsers.acceptUserId").is(targetUserId));
|
||||
|
||||
@ -24,6 +24,7 @@ public enum FreightGoldToUsdRatioEnum {
|
||||
*/
|
||||
YOLO(6000),
|
||||
LIKEI(10000),
|
||||
BZIZI(10000),
|
||||
LOTFUN(6000);
|
||||
|
||||
private final int ratio;
|
||||
|
||||
@ -111,7 +111,7 @@ public class WalletDiamondClientServiceImpl implements WalletDiamondClientServic
|
||||
cmd.setAmount(amount);
|
||||
cmd.setReqUserId(userId);
|
||||
cmd.setReqTime(new Date());
|
||||
cmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
|
||||
cmd.setReqSysOrigin(ReqSysOrigin.of("BZIZI"));
|
||||
log.warn("【钻石转金币定时器】用户-{} 自动兑换金币量 {}", userId, cmd);
|
||||
try {
|
||||
userBankExchangeGoldCmdExe.executeDiamond(cmd);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user