Browse Source

刷数据金额上下20%随机

master
nili 3 months ago
parent
commit
a901a8644c
  1. 3
      game-service/src/main/java/awesome/group/game/service/matrix/AdminService.java
  2. 3
      game-service/src/main/java/awesome/group/game/service/matrix/SuperAdminService.java

3
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);
});
}

3
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);
});
}

Loading…
Cancel
Save