kaka 4 years ago
parent
commit
7a63c5b8f5
1 changed files with 10 additions and 0 deletions
  1. 10 0
      assets/script/mk/system/AdSystem.ts

+ 10 - 0
assets/script/mk/system/AdSystem.ts

@@ -165,6 +165,8 @@ export default class AdSystem {
     private initLastTimeStamp() {
     private initLastTimeStamp() {
         let new_date = new Date();
         let new_date = new Date();
         this.last_time_stamp = new_date.getTime();
         this.last_time_stamp = new_date.getTime();
+
+        mk.storage.setStorage('last_time_stamp', this.last_time_stamp);
     }
     }
 
 
     /**
     /**
@@ -214,6 +216,10 @@ export default class AdSystem {
             return;
             return;
         }
         }
 
 
+        if (gData.warnTipData.curSolution >= 2) {
+            return;
+        }
+
         this.bannerAdType = bannerAdType;
         this.bannerAdType = bannerAdType;
         mk.console.logSingle('banner', 'showBanner');
         mk.console.logSingle('banner', 'showBanner');
         // console.log("===[AdSystem gameData.adShowConfig", gData.gameData.adShowConfig.is_show_banner);
         // console.log("===[AdSystem gameData.adShowConfig", gData.gameData.adShowConfig.is_show_banner);
@@ -248,6 +254,10 @@ export default class AdSystem {
             return;
             return;
         }
         }
 
 
+        if (gData.warnTipData.curSolution >= 2) {
+            return;
+        }
+
         if (type == 1) {
         if (type == 1) {
             if (des as InterFullAdType) {
             if (des as InterFullAdType) {
                 this.interFullAdType = des;
                 this.interFullAdType = des;