From a901a8644ca0cdc581f5aec5ddad1996bc811a13 Mon Sep 17 00:00:00 2001 From: nili Date: Fri, 11 Oct 2024 10:50:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=B7=E6=95=B0=E6=8D=AE=E9=87=91=E9=A2=9D?= =?UTF-8?q?=E4=B8=8A=E4=B8=8B20%=E9=9A=8F=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/awesome/group/game/service/matrix/AdminService.java | 3 ++- .../awesome/group/game/service/matrix/SuperAdminService.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/game-service/src/main/java/awesome/group/game/service/matrix/AdminService.java b/game-service/src/main/java/awesome/group/game/service/matrix/AdminService.java index 20b23fa..25501eb 100644 --- a/game-service/src/main/java/awesome/group/game/service/matrix/AdminService.java +++ b/game-service/src/main/java/awesome/group/game/service/matrix/AdminService.java @@ -370,7 +370,8 @@ public class AdminService { schedule.setAppId(appId); schedule.setScheduleTime(new Timestamp(x)); schedule.setChannel(app.getChannel()); - schedule.setIncomeYuan(bo.incomeYuan); + Integer incomeYuan = bo.incomeYuan * ThreadLocalRandom.current().nextInt(80, 120) / 100; + schedule.setIncomeYuan(incomeYuan); list.add(schedule); }); } diff --git a/game-service/src/main/java/awesome/group/game/service/matrix/SuperAdminService.java b/game-service/src/main/java/awesome/group/game/service/matrix/SuperAdminService.java index d3b57ae..f27af00 100644 --- a/game-service/src/main/java/awesome/group/game/service/matrix/SuperAdminService.java +++ b/game-service/src/main/java/awesome/group/game/service/matrix/SuperAdminService.java @@ -153,7 +153,8 @@ public class SuperAdminService { MatrixMockScheduleV2 schedule = new MatrixMockScheduleV2(); schedule.setAppId(appId); schedule.setScheduleTime(new Timestamp(x)); - schedule.setIncomeYuan(bo.incomeYuan); + Integer incomeYuan = bo.incomeYuan * ThreadLocalRandom.current().nextInt(80, 120) / 100; + schedule.setIncomeYuan(incomeYuan); list.add(schedule); }); }