|
|
@@ -223,8 +223,8 @@ export default class AdSystem {
|
|
|
let chance = gData.gameData.configs.ServerConfig.interOpenChance;
|
|
|
|
|
|
if (Math.random() <= chance) {
|
|
|
- let delay = gData.gameData.configs.ServerConfig.interOpenDelayMin
|
|
|
- + Math.random() * (gData.gameData.configs.ServerConfig.interOpenDelayMax - gData.gameData.configs.ServerConfig.interOpenDelayMin);
|
|
|
+ let delay = Number(gData.gameData.configs.ServerConfig.interOpenDelayMin)
|
|
|
+ + Math.random() * (Number(gData.gameData.configs.ServerConfig.interOpenDelayMax) - Number(gData.gameData.configs.ServerConfig.interOpenDelayMin));
|
|
|
setTimeout(() => {
|
|
|
this.showInterAd(0);
|
|
|
}, delay * 1000);
|