nili 7 months ago
parent
commit
ea20fb5d6a
  1. 3
      game-service/src/main/java/awesome/group/game/service/AdminService.java

3
game-service/src/main/java/awesome/group/game/service/AdminService.java

@ -319,6 +319,7 @@ public class AdminService {
while (income < target) { while (income < target) {
MatrixAdvRecord record = mockDevice.get(ThreadLocalRandom.current().nextInt(0, mockDevice.size())); MatrixAdvRecord record = mockDevice.get(ThreadLocalRandom.current().nextInt(0, mockDevice.size()));
long ecpm = ThreadLocalRandom.current().nextInt(500_00, 1500_00); long ecpm = ThreadLocalRandom.current().nextInt(500_00, 1500_00);
record.setId(null);
record.setEcpm(ecpm); record.setEcpm(ecpm);
record.setAppId(app.getId()); record.setAppId(app.getId());
record.setPlatform(2); record.setPlatform(2);
@ -328,7 +329,7 @@ public class AdminService {
advRecordMapper.insert(record); advRecordMapper.insert(record);
try{ try{
Thread.sleep(ThreadLocalRandom.current().nextInt(10000, 20000)); Thread.sleep(ThreadLocalRandom.current().nextInt(10_000, 20_000));
} catch (Exception e) { } catch (Exception e) {
L.trace("mockData", "error:" + e.getMessage(), e); L.trace("mockData", "error:" + e.getMessage(), e);
} }

Loading…
Cancel
Save