feat(配置): lotfun转换likei

This commit is contained in:
tianfeng 2025-08-07 10:49:44 +08:00
parent 73849b6d8e
commit 1bc76dfdb5
13 changed files with 16 additions and 13 deletions

View File

@ -29,12 +29,13 @@ public enum SysOriginPlatformEnum implements ISysOriginPlatform {
HALAR("Halar",8),
LOTFUN("Lotfun",9),
HOOKA("Hooka",10),
LIKEI("Likei",11),
;
/**
* 语言房系统.
*/
private static final List<SysOriginPlatformEnum> VOICE_SYSTEM = List.of(TARAB, YOLO, HALAR, LOTFUN, HOOKA);
private static final List<SysOriginPlatformEnum> VOICE_SYSTEM = List.of(TARAB, YOLO, HALAR, LIKEI, HOOKA);
/**
* 平台名称.

View File

@ -14,6 +14,7 @@ public enum GameSysOriginEnum implements ISysOriginPlatform {
HALAR("Halar"),
LOTFUN("Lotfun"),
HOOKA("Hooka"),
LIKEI("Likei"),
;
private final String originName;

View File

@ -59,7 +59,7 @@ public class StatisticsDailyRegisterLogoutPlatformServiceImpl extends
private String countUserByRegion(LocalDate countTime, LocalDate endCountTime) {
// 查询各个区域的注册信息插入数据库
List<IUserBaseInfo> userBaseInfos = userBaseInfoService.countUserByRegion(SysOriginPlatformEnum.LOTFUN.getSysOrigin(), countTime, endCountTime);
List<IUserBaseInfo> userBaseInfos = userBaseInfoService.countUserByRegion(SysOriginPlatformEnum.LIKEI.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();

View File

@ -58,7 +58,7 @@ public class GoogleReimburseCheckTask {
public void executeReimburse(int latestMinutes) {
List.of(
KeyValuePair.of(SysOriginPlatformEnum.LOTFUN, "com.lotfun.life.room")
KeyValuePair.of(SysOriginPlatformEnum.LIKEI, "com.likei.life.room")
).forEach(keyValuePair -> {
VoidedPurchasesListResponse response = googleVerifyService

View File

@ -106,7 +106,7 @@ public class OrderPurchaseHistoryClientServiceImpl implements OrderPurchaseHisto
.select(OrderPurchaseHistory::getId)
.eq(OrderPurchaseHistory::getUserId, userId)
.eq(OrderPurchaseHistory::getPayPlatform, "GOOGLE")
.eq(OrderPurchaseHistory::getSysOrigin, "LOTFUN")
.eq(OrderPurchaseHistory::getSysOrigin, "LIKEI")
.list();
return CollectionUtils.isNotEmpty(list);
}

View File

@ -163,7 +163,7 @@ public class ManagerApprovalNotPassCmdExe {
private void approvalUserAccount(ManagerApprovalCmd cmd) {
if (cmd.checkApprovalUserAccountFreeze()) {
UserConsumptionLevel userLevel = userProfileGateway.getUserConsumptionLevel(
SysOriginPlatformEnum.valueOf("LOTFUN"),
SysOriginPlatformEnum.valueOf("LIKEI"),
cmd.getBeApprovalUserId());
checkUserLevel(cmd, userLevel);

View File

@ -158,7 +158,7 @@ public class GameBurstCrystalCommon {
try {
// 发送奖励
if (Objects.equals(cmd.getSysOrigin().name(), SysOriginPlatformEnum.LOTFUN.name()) || Objects.equals(cmd.getSysOrigin().name(), SysOriginPlatformEnum.TARAB.name())) {
if (Objects.equals(cmd.getSysOrigin().name(), SysOriginPlatformEnum.LIKEI.name()) || Objects.equals(cmd.getSysOrigin().name(), SysOriginPlatformEnum.TARAB.name())) {
sendRewardTwoFun(cmd, processing, ruleConfig, ruleContent.getLevel());
} else {
sendReward(cmd, processing, ruleConfig);

View File

@ -521,7 +521,7 @@ public class TaskListener implements MessageListener {
private void handleTask13(TaskApprovalEvent eventBody) {
log.warn("处理任务-13 财富等级达到10级: {}", eventBody);
UserConsumptionLevel userLevel = userProfileGateway.getUserConsumptionLevel(
SysOriginPlatformEnum.valueOf("LOTFUN"),
SysOriginPlatformEnum.valueOf("LIKEI"),
eventBody.getUserId());
if (userLevel.getWealthLevel() >= 10) {
updateTaskStatusV2(eventBody);
@ -533,7 +533,7 @@ public class TaskListener implements MessageListener {
private void handleTask14(TaskApprovalEvent eventBody) {
log.warn("处理任务-14 魅力等级达到10级: {}", eventBody);
UserConsumptionLevel userLevel = userProfileGateway.getUserConsumptionLevel(
SysOriginPlatformEnum.valueOf("LOTFUN"),
SysOriginPlatformEnum.valueOf("LIKEI"),
eventBody.getUserId());
//魅力等级逻辑
if (userLevel.getCharmLevel() >= 10) {

View File

@ -43,9 +43,9 @@ public class DiamondToCoinsTask {
@TaskCacheLock(key = "USER_SALARY_DIAMOND_BALANCE", expireSecond = 86400)
public void diamondToCoins() {
Map<Long, BigDecimal> userIdBalanceMap = salaryDiamondBalanceClient.mapBalanceBySysOrigin(SysOriginPlatformEnum.LOTFUN.name()).getBody();
Map<Long, BigDecimal> userIdBalanceMap = salaryDiamondBalanceClient.mapBalanceBySysOrigin(SysOriginPlatformEnum.LIKEI.name()).getBody();
if (CollectionUtils.isEmpty(userIdBalanceMap)) {
log.warn("【钻石转金币定时器】:LOTFUN 系统不存在钻石余额数据");
log.warn("【钻石转金币定时器】:LIKEI 系统不存在钻石余额数据");
return;
}
userIdBalanceMap.forEach(

View File

@ -374,7 +374,7 @@ public class TaskServiceImpl implements TaskService {
userTaskProgress.setCreateTimestamp(TimestampUtils.now());
UserConsumptionLevel userLevel = userProfileGateway.getUserConsumptionLevel(
SysOriginPlatformEnum.valueOf("LOTFUN"),
SysOriginPlatformEnum.valueOf("LIKEI"),
userId);
//taskid =6 加入家族 7 组成cp 13 财富等级10 14 魅力等级10 初始化时就要判断是否完成
switch (taskConfig.getTaskId().intValue()) {

View File

@ -153,7 +153,7 @@ public class ManagerAuthServiceImpl implements ManagerAuthService {
}
String lowerCaseInput = input.toLowerCase();
return !(lowerCaseInput.contains("manager") ||
lowerCaseInput.contains("lotfun") ||
lowerCaseInput.contains("likei") ||
lowerCaseInput.contains("official"));
}

View File

@ -23,6 +23,7 @@ public enum FreightGoldToUsdRatioEnum {
* YOLO.
*/
YOLO(6000),
LIKEI(6000),
LOTFUN(6000);
private final int ratio;

View File

@ -111,7 +111,7 @@ public class WalletDiamondClientServiceImpl implements WalletDiamondClientServic
cmd.setAmount(amount);
cmd.setReqUserId(userId);
cmd.setReqTime(new Date());
cmd.setReqSysOrigin(ReqSysOrigin.of("LOTFUN"));
cmd.setReqSysOrigin(ReqSysOrigin.of("LIKEI"));
log.warn("【钻石转金币定时器】用户-{} 自动兑换金币量 {}", userId, cmd);
try {
userBankExchangeGoldCmdExe.executeDiamond(cmd);