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