游戏处理
This commit is contained in:
parent
ca0d6ad49d
commit
b5acdd03b2
@ -265,32 +265,27 @@ public class GameHkysRestController {
|
|||||||
|
|
||||||
log.info("Spins游戏消费任务, userId={}, spendAmount={}, totalSpend={}", userId, amount, totalSpend);
|
log.info("Spins游戏消费任务, userId={}, spendAmount={}, totalSpend={}", userId, amount, totalSpend);
|
||||||
|
|
||||||
if (totalSpend >= 5000) {
|
int progressValue = Integer.parseInt(String.valueOf(totalSpend));
|
||||||
spinsUserTaskProgressService.updateTaskProgress(
|
spinsUserTaskProgressService.updateTaskProgress(
|
||||||
new SpinsTaskProgressUpdateCmd()
|
new SpinsTaskProgressUpdateCmd()
|
||||||
.setUserId(userId)
|
.setUserId(userId)
|
||||||
.setTaskCode("SPINS_SPEND_5000")
|
.setTaskCode("SPINS_SPEND_5000")
|
||||||
.setProgressValue(1)
|
.setProgressValue(progressValue)
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
if (totalSpend >= 10000) {
|
spinsUserTaskProgressService.updateTaskProgress(
|
||||||
spinsUserTaskProgressService.updateTaskProgress(
|
new SpinsTaskProgressUpdateCmd()
|
||||||
new SpinsTaskProgressUpdateCmd()
|
.setUserId(userId)
|
||||||
.setUserId(userId)
|
.setTaskCode("SPINS_SPEND_10000")
|
||||||
.setTaskCode("SPINS_SPEND_10000")
|
.setProgressValue(progressValue)
|
||||||
.setProgressValue(1)
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (totalSpend >= 50000) {
|
spinsUserTaskProgressService.updateTaskProgress(
|
||||||
spinsUserTaskProgressService.updateTaskProgress(
|
new SpinsTaskProgressUpdateCmd()
|
||||||
new SpinsTaskProgressUpdateCmd()
|
.setUserId(userId)
|
||||||
.setUserId(userId)
|
.setTaskCode("SPINS_SPEND_50000")
|
||||||
.setTaskCode("SPINS_SPEND_50000")
|
.setProgressValue(progressValue)
|
||||||
.setProgressValue(1)
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
log.info("Spins游戏消费任务处理成功, userId={}, totalSpend={}", userId, totalSpend);
|
log.info("Spins游戏消费任务处理成功, userId={}, totalSpend={}", userId, totalSpend);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@ -335,32 +335,27 @@ public class GameBaishunServiceImpl implements GameBaishunService {
|
|||||||
redisService.setString(redisKey, String.valueOf(totalSpend), expireSeconds, TimeUnit.SECONDS);
|
redisService.setString(redisKey, String.valueOf(totalSpend), expireSeconds, TimeUnit.SECONDS);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (totalSpend >= 5000) {
|
int progressValue = Integer.parseInt(String.valueOf(totalSpend));
|
||||||
spinsUserTaskProgressService.updateTaskProgress(
|
spinsUserTaskProgressService.updateTaskProgress(
|
||||||
new SpinsTaskProgressUpdateCmd()
|
new SpinsTaskProgressUpdateCmd()
|
||||||
.setUserId(userId)
|
.setUserId(userId)
|
||||||
.setTaskCode("SPINS_SPEND_5000")
|
.setTaskCode("SPINS_SPEND_5000")
|
||||||
.setProgressValue(1)
|
.setProgressValue(progressValue)
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
if (totalSpend >= 10000) {
|
spinsUserTaskProgressService.updateTaskProgress(
|
||||||
spinsUserTaskProgressService.updateTaskProgress(
|
new SpinsTaskProgressUpdateCmd()
|
||||||
new SpinsTaskProgressUpdateCmd()
|
.setUserId(userId)
|
||||||
.setUserId(userId)
|
.setTaskCode("SPINS_SPEND_10000")
|
||||||
.setTaskCode("SPINS_SPEND_10000")
|
.setProgressValue(progressValue)
|
||||||
.setProgressValue(1)
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (totalSpend >= 50000) {
|
spinsUserTaskProgressService.updateTaskProgress(
|
||||||
spinsUserTaskProgressService.updateTaskProgress(
|
new SpinsTaskProgressUpdateCmd()
|
||||||
new SpinsTaskProgressUpdateCmd()
|
.setUserId(userId)
|
||||||
.setUserId(userId)
|
.setTaskCode("SPINS_SPEND_50000")
|
||||||
.setTaskCode("SPINS_SPEND_50000")
|
.setProgressValue(progressValue)
|
||||||
.setProgressValue(1)
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
log.info("Spins游戏消费任务处理成功, userId={}, totalSpend={}", userId, totalSpend);
|
log.info("Spins游戏消费任务处理成功, userId={}, totalSpend={}", userId, totalSpend);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@ -408,32 +408,27 @@ public class HotGameServiceImpl implements HotGameService {
|
|||||||
|
|
||||||
log.info("Spins游戏消费任务, userId={}, spendAmount={}, totalSpend={}", userId, amount, totalSpend);
|
log.info("Spins游戏消费任务, userId={}, spendAmount={}, totalSpend={}", userId, amount, totalSpend);
|
||||||
|
|
||||||
if (totalSpend >= 5000) {
|
int progressValue = Integer.parseInt(String.valueOf(totalSpend));
|
||||||
spinsUserTaskProgressService.updateTaskProgress(
|
spinsUserTaskProgressService.updateTaskProgress(
|
||||||
new SpinsTaskProgressUpdateCmd()
|
new SpinsTaskProgressUpdateCmd()
|
||||||
.setUserId(userId)
|
.setUserId(userId)
|
||||||
.setTaskCode("SPINS_SPEND_5000")
|
.setTaskCode("SPINS_SPEND_5000")
|
||||||
.setProgressValue(1)
|
.setProgressValue(progressValue)
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
if (totalSpend >= 10000) {
|
spinsUserTaskProgressService.updateTaskProgress(
|
||||||
spinsUserTaskProgressService.updateTaskProgress(
|
new SpinsTaskProgressUpdateCmd()
|
||||||
new SpinsTaskProgressUpdateCmd()
|
.setUserId(userId)
|
||||||
.setUserId(userId)
|
.setTaskCode("SPINS_SPEND_10000")
|
||||||
.setTaskCode("SPINS_SPEND_10000")
|
.setProgressValue(progressValue)
|
||||||
.setProgressValue(1)
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (totalSpend >= 50000) {
|
spinsUserTaskProgressService.updateTaskProgress(
|
||||||
spinsUserTaskProgressService.updateTaskProgress(
|
new SpinsTaskProgressUpdateCmd()
|
||||||
new SpinsTaskProgressUpdateCmd()
|
.setUserId(userId)
|
||||||
.setUserId(userId)
|
.setTaskCode("SPINS_SPEND_50000")
|
||||||
.setTaskCode("SPINS_SPEND_50000")
|
.setProgressValue(progressValue)
|
||||||
.setProgressValue(1)
|
);
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
log.info("Spins游戏消费任务处理成功, userId={}, totalSpend={}", userId, totalSpend);
|
log.info("Spins游戏消费任务处理成功, userId={}, totalSpend={}", userId, totalSpend);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user