Przeglądaj źródła

全屏插屏功能开发

kaka 5 lat temu
rodzic
commit
847d65f910

+ 47 - 3
assets/script/game/data/AdData.ts

@@ -20,9 +20,6 @@ export class AdData {
     public precision = '';
     public ecpm_level = '';
 
-    /** 广告类型(1:激励视频、2:插屏、3:信息流) */
-    public adType: number = 1;
-
     /** 视频类型 */
     public ad_subType: AdFun;
 
@@ -38,6 +35,9 @@ export class AdData {
 
     private adMap: Map<number, Data>
 
+    /** 全屏插屏弹出规则 */
+    private fullInterShowStr = ''
+
     public init() {
         this.adMap = new Map<number, Data>();
         this.adMap.set(AdFun.bubble, gData.reward)
@@ -178,6 +178,50 @@ export class AdData {
 
         mk.http.sendData('updateADLog', sData);
     }
+
+    /** 设置关闭红包弹出全屏插屏序列 */
+    setFullInterShowStr() {
+        let fullInterShowStrArr = gData.gameData.configs.GlobalCfg.fullInterShowStrArr;
+        for (var i = 0; i < fullInterShowStrArr.length; i++) {
+            if (gData.gameData.adShowConfig.average_ecpm <= fullInterShowStrArr[i].ecpmmax) {
+                this.fullInterShowStr = fullInterShowStrArr[i].proStr;
+                break;
+            }
+        }
+    }
+
+    /** 检查是否显示全屏插屏
+     * @type 不同情况弹出类型 1:提现结束判断ecpm低于一定值弹出  2:关闭红包界面不观看激励视频有概率拉起全屏广告
+     */
+    checkShowFullInter(type) {
+        //全屏广告开关
+        if (gData.gameData.configs.GlobalCfg.popFullInter != "1") {
+            return
+        }
+
+        if (type == 1) {
+            if (gData.gameData.adShowConfig.average_ecpm <= gData.gameData.configs.GlobalCfg.popFullEcpmAfterCash) {
+                mk.ad.showInterAd(1);
+            }
+        }
+        else if (type == 2) {
+            if (this.fullInterShowStr) {
+                let popFullIndex = mk.storage.getStorage('popFullIndex');
+                if (popFullIndex == null) {
+                    popFullIndex = 0;
+                }
+                else {
+                    popFullIndex++;
+                }
+                mk.storage.setStorage('popFullIndex', popFullIndex);
+
+                let index = popFullIndex % this.fullInterShowStr.length;
+                if (this.fullInterShowStr[index] == '1') {
+                    mk.ad.showInterAd(1);
+                }
+            }
+        }
+    }
 }
 
 /**

+ 2 - 0
assets/script/game/data/GameData.ts

@@ -87,6 +87,8 @@ export class GameData {
         }
         this.adShowConfig = response.data;
         mk.console.logSingle("user/adShowConfig", response.data);
+        
+        gData.adData.setFullInterShowStr();
 
         this.dataFinish = true;
     }

+ 2 - 5
assets/script/game/module/blessingBag/BlessingBag.ts

@@ -230,7 +230,7 @@ export default class BlessingBag extends cc.Component {
 
 
     Click_AdProgressBtn() {
-      
+
         mk.audio.playEffect("button");
         if (!gData.loginData.isAuth) {
             JsbSystem.WxAuth();
@@ -312,7 +312,6 @@ export default class BlessingBag extends cc.Component {
         this.canOpen = false;
 
         if (this.rbPanelType == 1) {
-           
             gData.cashPro.openCashPro(cashProType.blessing_bigCash, gData.blessingBag.bigRbNum)
         } else {
             //弹确认提现界面
@@ -325,10 +324,8 @@ export default class BlessingBag extends cc.Component {
                 this.aniBtnAd.node.active = false;
                 this.rbOpenBtn.active = true;
                 this.nodeRb.active = false;
-
                 gData.blessingBag.HttpCashTask();
-                // gData.cashPro.openCashPro(cashProType.blessing_taskCash, gData.blessingBag.taskRbNum)
-
+                
                 this.canOpen = true;
             }, 1000);
         }

+ 3 - 1
assets/script/game/module/cashPro/CashPro.ts

@@ -85,7 +85,9 @@ export default class CashPro extends cc.Component {
 
     showCashPro() {
         this.cashPro.active = true;
-        mk.tween.move(this.cashPro, 0.3, cc.v2(1000, 0), cc.v2(0, 0), null, 'elasticIn');
+        mk.tween.move(this.cashPro, 0.3, cc.v2(1000, 0), cc.v2(0, 0), () => {
+            gData.adData.checkShowFullInter(1);
+        }, 'elasticIn');
         this.labMoney.string = `¥${this.money}`
     }
 

+ 1 - 0
assets/script/game/module/receiptNotice/ReceiptNotice.ts

@@ -28,6 +28,7 @@ export default class ReceiptNotice extends cc.Component {
         if (gData.receiptNotice.init_style) {
             gData.receiptNotice.init_style = false;
             this.initStyle();
+            gData.adData.checkShowFullInter(1);
         }
     }
 

+ 3 - 2
assets/script/game/module/redCode/RedCode.ts

@@ -46,6 +46,7 @@ export default class RedCode extends cc.Component {
     update() {
         if (gData.redCodeData.init_data) {
             this.init(gData.redCodeData.money, gData.redCodeData.code);
+            gData.adData.checkShowFullInter(1);
         }
     }
 
@@ -101,10 +102,10 @@ export default class RedCode extends cc.Component {
     }
 
     onClickClose() {
-        
+
     }
 
-    onDisable(){
+    onDisable() {
         mk.ad.destroyNativeAd();
     }
 }

+ 11 - 2
assets/script/game/module/reward/Reward.ts

@@ -61,8 +61,12 @@ export default class Reward extends cc.Component {
     /** 当前阶段 */
     private cur_stage: number = LidType.none;
 
+    /** 是否看广告 */
+    private hasWatchVideo = false;
+
     onLoad() {
         this.hb_star.active = false;
+        this.hasWatchVideo = false;
         this.lbl_reward_value.string = '0';
         // gData.reward.data = [{ rewardType: 3, rewardNum: 100 }]// 测试数据
     }
@@ -84,6 +88,7 @@ export default class Reward extends cc.Component {
         if (gData.reward.adData) {
             // 展示奖励
             this.watchVideoCall();
+            this.hasWatchVideo = true;
             return;
         }
     }
@@ -244,8 +249,8 @@ export default class Reward extends cc.Component {
         cc.log('获取奖励:', gData.reward.data);
         gData.reward.flyCoinAnim();
         this.onClickClose();
-        if(gData.gameData.getProp(GameProp.videoTimes) == 0){
-            mk.data.sendXYEvent("guide_receive","新手引导领取2500红包币");
+        if (gData.gameData.getProp(GameProp.videoTimes) == 0) {
+            mk.data.sendXYEvent("guide_receive", "新手引导领取2500红包币");
         }
     }
 
@@ -302,5 +307,9 @@ export default class Reward extends cc.Component {
         else {
             mk.ad.checkShowInterByChance();
         }
+
+        if (!this.hasWatchVideo) {
+            gData.adData.checkShowFullInter(2);
+        }
     }
 }

+ 1 - 0
assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATInterstitial.ts

@@ -27,6 +27,7 @@ export default class ATInterstitial extends zgSingleton {
 
         if (this.interAdState == InterAdState.Unload) {
             this.loadInter(0);
+            this.loadInter(1);
         }
     }
 

+ 3 - 2
assets/script/mk/sdk/ad/toppon/AnyThinkAdsMgr/ATSDKMgr.ts

@@ -61,7 +61,7 @@ export default class ATSDKMgr extends zgSingleton implements IADSDKMgr {
         let str = JsbSystem.getAdvertisingChannel();
         if (!str) {
             //channelId,AppId,AppSecreate,激励视频,插屏,信息流,开屏,banner
-            str = '1,a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313';
+            str = '1,a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313,b60cac0e524313';
         }
         console.log("getAdvertiseChannel..." + str);
 
@@ -72,8 +72,9 @@ export default class ATSDKMgr extends zgSingleton implements IADSDKMgr {
         ATSDKMgr.topon_rewardVideo_placementId = arr[3];
         ATSDKMgr.topon_inter_placementId = arr[4];
         ATSDKMgr.topon_native_placementId = arr[5];
-        ATSDKMgr.topon_fullinter_placementId = arr[6];
+
         ATSDKMgr.topon_banner_placementId = arr[7];
+        ATSDKMgr.topon_fullinter_placementId = arr[8];
     }
 
     //激励视频广告------------------------------------------------------------------------------

BIN
build/jsb-link/assets/main/index.jsc


Plik diff jest za duży
+ 0 - 0
build/jsb-link/assets/resources/config.json


Plik diff jest za duży
+ 0 - 0
build/jsb-link/assets/resources/import/4c/4c49ec9e-c64a-4921-84eb-9bdd737656e5.json


Plik diff jest za duży
+ 0 - 0
build/jsb-link/assets/resources/import/b4/b4dea4a9-29c8-46bc-a50d-5754afa7a2bd.json


BIN
build/jsb-link/frameworks/runtime-src/proj.android-studio/.idea/caches/build_file_checksums.ser


+ 3 - 3
build/jsb-link/frameworks/runtime-src/proj.android-studio/.idea/modules/1786486690/libcocos2dx.iml

@@ -33,16 +33,16 @@
       <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/java/src" isTestSource="false" />
     </content>
     <content url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx">
-      <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/aidl_source_output_dir/debug/compileDebugAidl/out" isTestSource="false" generated="true" />
       <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/source/apt/debug" isTestSource="false" generated="true" />
+      <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/aidl_source_output_dir/debug/compileDebugAidl/out" isTestSource="false" generated="true" />
       <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
       <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/renderscript_source_output_dir/debug/compileDebugRenderscript/out" isTestSource="false" generated="true" />
       <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/res/rs/debug" type="java-resource" generated="true" />
       <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/res/resValues/debug" type="java-resource" generated="true" />
-      <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
       <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/source/apt/androidTest/debug" isTestSource="true" generated="true" />
-      <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/renderscript_source_output_dir/debugAndroidTest/compileDebugAndroidTestRenderscript/out" isTestSource="true" generated="true" />
       <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/aidl_source_output_dir/debugAndroidTest/compileDebugAndroidTestAidl/out" isTestSource="true" generated="true" />
+      <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
+      <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/renderscript_source_output_dir/debugAndroidTest/compileDebugAndroidTestRenderscript/out" isTestSource="true" generated="true" />
       <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/res/rs/androidTest/debug" type="java-test-resource" generated="true" />
       <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/res/resValues/androidTest/debug" type="java-test-resource" generated="true" />
       <sourceFolder url="file://D:/CocosCreatorIDE/CocosDashboard/resources/.editors/Creator/2.4.5/resources/cocos2d-x/cocos/platform/android/libcocos2dx/build/generated/source/apt/test/debug" isTestSource="true" generated="true" />

+ 4 - 3
build/jsb-link/frameworks/runtime-src/proj.android-studio/.idea/modules/app/EasyEliminate.iml

@@ -187,16 +187,16 @@
       <sourceFolder url="file://$MODULE_DIR$/../../../../Classes" isTestSource="false" />
     </content>
     <content url="file://$MODULE_DIR$/../../../app">
-      <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
       <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/source/apt/debug" isTestSource="false" generated="true" />
       <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/aidl_source_output_dir/debug/compileDebugAidl/out" isTestSource="false" generated="true" />
+      <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
       <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/renderscript_source_output_dir/debug/compileDebugRenderscript/out" isTestSource="false" generated="true" />
       <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/res/rs/debug" type="java-resource" generated="true" />
       <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/res/resValues/debug" type="java-resource" generated="true" />
-      <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/renderscript_source_output_dir/debugAndroidTest/compileDebugAndroidTestRenderscript/out" isTestSource="true" generated="true" />
-      <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
       <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/source/apt/androidTest/debug" isTestSource="true" generated="true" />
       <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/aidl_source_output_dir/debugAndroidTest/compileDebugAndroidTestAidl/out" isTestSource="true" generated="true" />
+      <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
+      <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/renderscript_source_output_dir/debugAndroidTest/compileDebugAndroidTestRenderscript/out" isTestSource="true" generated="true" />
       <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/res/rs/androidTest/debug" type="java-test-resource" generated="true" />
       <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/res/resValues/androidTest/debug" type="java-test-resource" generated="true" />
       <sourceFolder url="file://$MODULE_DIR$/../../../app/build/generated/source/apt/test/debug" isTestSource="true" generated="true" />
@@ -300,6 +300,7 @@
     <orderEntry type="library" name="Gradle: ./app/libs/thinkingdata/ThinkingSDK.aar" level="project" />
     <orderEntry type="library" name="Gradle: ./app/libs/umeng/umeng-abtest-v1.0.0.aar" level="project" />
     <orderEntry type="library" name="Gradle: ./app/libs/umeng/umeng-asms-armeabi-v1.2.3.aar" level="project" />
+    <orderEntry type="library" name="Gradle: ./app/libs/aliRisk/Android-AliyunDevice-10017.aar" level="project" />
     <orderEntry type="library" name="Gradle: com.tencent.mm.opensdk:wechat-sdk-android-without-mta:6.7.9@aar" level="project" />
     <orderEntry type="library" name="Gradle: com.google.android.material:material:1.0.0@aar" level="project" />
     <orderEntry type="library" name="Gradle: androidx.appcompat:appcompat:1.0.0@aar" level="project" />

+ 2 - 4
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/gradle.properties

@@ -12,7 +12,5 @@ MY_APP_NAME=\u5929\u5929\u7231\u6d88\u6d88
 PACKAGE_NAME=com.aries.qsllx.mz
 VERSION_NAME=1.0.2
 VERSION_CODE=2
-TOPON="a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313"; //巨量渠道topon的 AppId,AppSecreate,激励视频,插屏,信息流,全屏开屏,banner
-APP_CONFIG_CODE="1.1.1"
-
-
+TOPON="a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313,b6113813b876a1"; //巨量渠道topon的 AppId,AppSecreate,激励视频,插屏,信息流,开屏,banner,全屏插屏
+APP_CONFIG_CODE="1.1.1"

+ 64 - 18
build/jsb-link/js backups (useful for debugging)/main.index.js

@@ -646,7 +646,10 @@ e.prototype.init = function() {
 this.ATInterstitialJS = cc.ATInterstitialJS;
 this.ATInterstitialJS.proxy = this;
 this.ATInterstitialJS.init();
-this.interAdState == a.Unload && this.loadInter(0);
+if (this.interAdState == a.Unload) {
+this.loadInter(0);
+this.loadInter(1);
+}
 };
 e.prototype.placementID = function() {
 if (0 == this.interAdType) {
@@ -1427,7 +1430,7 @@ return cc.sys.os === cc.sys.OS_IOS ? n.topon_rewardVideo_placementId : cc.sys.os
 };
 e.prototype.getAdvertiseChannel = function() {
 var t = c.default.getAdvertisingChannel();
-t || (t = "1,a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313");
+t || (t = "1,a60cac090a6eb0,66b742dd0e502b64d783d9c66a9d30c4,b60cac0e43c0e1,b60cac0e4892fa,b60cac0e4d08e8,b60cac0e5754fc,b60cac0e524313,b60cac0e524313");
 console.log("getAdvertiseChannel..." + t);
 var e = t.split(",");
 e[0];
@@ -1436,8 +1439,8 @@ n.topon_android_appSecret = e[2];
 n.topon_rewardVideo_placementId = e[3];
 n.topon_inter_placementId = e[4];
 n.topon_native_placementId = e[5];
-n.topon_fullinter_placementId = e[6];
 n.topon_banner_placementId = e[7];
+n.topon_fullinter_placementId = e[8];
 };
 e.prototype.showVideo = function() {
 console.log("===[ShowVideoAd] ", d.ATRewardVideo.getInstance().hasAdReady());
@@ -1850,8 +1853,8 @@ this.adsource_isheaderbidding = "";
 this.publisher_revenue = "";
 this.precision = "";
 this.ecpm_level = "";
-this.adType = 1;
 this._watchNumToday = 0;
+this.fullInterShowStr = "";
 }
 Object.defineProperty(t.prototype, "watchNumToday", {
 get: function() {
@@ -1988,6 +1991,21 @@ ecpm_level: ""
 };
 mk.http.sendData("updateADLog", o);
 };
+t.prototype.setFullInterShowStr = function() {
+for (var t = gData.gameData.configs.GlobalCfg.fullInterShowStrArr, e = 0; e < t.length; e++) if (gData.gameData.adShowConfig.average_ecpm <= t[e].ecpmmax) {
+this.fullInterShowStr = t[e].proStr;
+break;
+}
+};
+t.prototype.checkShowFullInter = function(t) {
+if ("1" == gData.gameData.configs.GlobalCfg.popFullInter) if (1 == t) gData.gameData.adShowConfig.average_ecpm <= gData.gameData.configs.GlobalCfg.popFullEcpmAfterCash && mk.ad.showInterAd(1); else if (2 == t && this.fullInterShowStr) {
+var e = mk.storage.getStorage("popFullIndex");
+null == e ? e = 0 : e++;
+mk.storage.setStorage("popFullIndex", e);
+var n = e % this.fullInterShowStr.length;
+"1" == this.fullInterShowStr[n] && mk.ad.showInterAd(1);
+}
+};
 return t;
 }();
 n.AdData = c;
@@ -2019,7 +2037,7 @@ this.last_time_stamp = 0;
 this.adSdk = t;
 }
 t.prototype.init = function() {
-cc.sys.os == cc.sys.OS_ANDROID ? this.ifShowAd = !0 : this.ifShowAd = !1;
+cc.sys.os, cc.sys.OS_ANDROID, this.ifShowAd = "1" == gData.gameData.configs.ServerConfig.ifShowAd;
 this.adSdk.initSDK();
 };
 t.prototype.watchAd = function(t) {
@@ -5127,7 +5145,9 @@ this.showCashPro();
 };
 e.prototype.showCashPro = function() {
 this.cashPro.active = !0;
-mk.tween.move(this.cashPro, .3, cc.v2(1e3, 0), cc.v2(0, 0), null, "elasticIn");
+mk.tween.move(this.cashPro, .3, cc.v2(1e3, 0), cc.v2(0, 0), function() {
+gData.adData.checkShowFullInter(1);
+}, "elasticIn");
 this.labMoney.string = "¥" + this.money;
 };
 e.prototype.tixianFail = function() {
@@ -7086,22 +7106,26 @@ e.btn5 = null;
 e.btn6 = null;
 e.btn7 = null;
 e.btn8 = null;
-e.btn_redeem = null;
+e.btn9 = null;
+e.btn_pigbank = null;
 return e;
 }
 e.prototype.onLoad = function() {
 gData.gameData.funBtns = this;
 };
-e.prototype.start = function() {};
+e.prototype.start = function() {
+this.init();
+};
 e.prototype.init = function() {
 for (var t = gData.gameData.funOpenData, e = 0; e < t.length; e++) {
 var n = this["btn" + (e + 1)];
 n && (n.active = "1" == t[e]);
 }
+this.btn_pigbank && (this.btn_pigbank.active = "1" == t[3]);
 this.updateRedeem();
 };
 e.prototype.updateRedeem = function() {
-this.btn_redeem.active = gData.redeem.showBtn;
+this.btn9 && (this.btn9.active = gData.redeem.showBtn && "1" == gData.gameData.funOpenData[8]);
 };
 e.prototype.update = function() {
 if (gData.redeem.init_btnChange) {
@@ -7144,7 +7168,11 @@ displayName: "气泡红包组"
 a([ s({
 type: cc.Node,
 displayName: "福利礼包"
-}) ], e.prototype, "btn_redeem", void 0);
+}) ], e.prototype, "btn9", void 0);
+a([ s({
+type: cc.Node,
+displayName: "金猪币按钮"
+}) ], e.prototype, "btn_pigbank", void 0);
 return a([ c ], e);
 }(cc.Component);
 n.default = l;
@@ -7453,6 +7481,7 @@ return [ 2 ];
 }
 mk.console.logSingle("getAllConfigInfo", e.data);
 this.initConfigs(e.data);
+mk.ad.init();
 t = {};
 return [ 4, mk.http.sendData("getInfoCrypt", t) ];
 
@@ -7473,6 +7502,7 @@ case 3:
 if (0 != (e = n.sent()).errcode) return [ 2 ];
 this.adShowConfig = e.data;
 mk.console.logSingle("user/adShowConfig", e.data);
+gData.adData.setFullInterShowStr();
 this.dataFinish = !0;
 return [ 2 ];
 }
@@ -8268,7 +8298,7 @@ this.spr_progress.fillRange = t;
 if (t >= 1) {
 gData.reward.subType = 2;
 mk.ad.videoAdType = f.VideoAdType.LevelScoreRedBag;
-mk.ui.getCurOnPanel("rewardLuck") || mk.ui.openPanel("module/reward/rewardLuck");
+mk.ui.getCurOnPanel("rewardLuck") || "1" != gData.gameData.funOpenData[6] || mk.ui.openPanel("module/reward/rewardLuck");
 }
 };
 e.prototype.initPropNum = function() {
@@ -8599,7 +8629,11 @@ var t = gData.gameData.getProp(f.GameProp.levelNum);
 mk.console.log("[Game]pass passLevelNum", t);
 n.Inst.ifGetPass = !0;
 gData.gameData.setProp(f.GameProp.levelNum, ++t);
-if (!(mk.ui.getCurOnPanel("rewardLuck") || this.finalGetScore >= this.targetScore)) {
+if ("1" == gData.gameData.funOpenData[6]) {
+if (mk.ui.getCurOnPanel("rewardLuck") || this.finalGetScore >= this.targetScore) return;
+this.gameCount();
+console.log("gData.gameData.getProp(GameProp.levelNum)", gData.gameData.getProp(f.GameProp.levelNum));
+} else {
 this.gameCount();
 console.log("gData.gameData.getProp(GameProp.levelNum)", gData.gameData.getProp(f.GameProp.levelNum));
 }
@@ -9008,7 +9042,7 @@ e.prototype.initMusic = function() {
 mk.audio.playMusic("bgm");
 };
 e.prototype.initBtns = function() {
-this.node_btn.getComponent(p.default).init();
+this.node_btn.getComponent(p.default);
 };
 e.prototype.initQiPaos = function() {
 mk.tween.scale(this.btn_getRed1, .6, 0, 1, null, "backOut");
@@ -9778,7 +9812,7 @@ break;
 };
 t.prototype.openPanelByBtn = function() {
 var t = gData.guideWeakData.cur_guide_id;
-gData.gameData.funBtns["btn" + t] && gData.gameData.funBtns["btn" + t].emit("click");
+gData.gameData.funBtns["btn" + t] && "1" == gData.gameData.funOpenData["" + t] && gData.gameData.funBtns["btn" + t].emit("click");
 };
 return t;
 }();
@@ -10574,7 +10608,7 @@ value: !0
 n.ServerUrl = n.HttpData = void 0;
 var o, i = function() {
 function t() {
-this.serverType = 1;
+this.serverType = 0;
 }
 t.prototype.getServerUrl = function() {
 switch (this.serverType) {
@@ -11526,7 +11560,6 @@ return i(this, function(i) {
 switch (i.label) {
 case 0:
 console.log("uin  ", gData.loginData.uin);
-mk.ad.init();
 mk.console.logSingle("machineInfo", gData.appData.machineInfo);
 return [ 4, mk.http.sendData("user/machine", gData.appData.machineInfo) ];
 
@@ -14767,6 +14800,7 @@ e.prototype.update = function() {
 if (gData.receiptNotice.init_style) {
 gData.receiptNotice.init_style = !1;
 this.initStyle();
+gData.adData.checkShowFullInter(1);
 }
 };
 e.prototype.initStyle = function() {
@@ -15821,7 +15855,10 @@ this.labOfficial.string = "“" + this.officialStr + "”";
 this.labRed.string = "“" + this.redCodeStr + "”";
 };
 e.prototype.update = function() {
-gData.redCodeData.init_data && this.init(gData.redCodeData.money, gData.redCodeData.code);
+if (gData.redCodeData.init_data) {
+this.init(gData.redCodeData.money, gData.redCodeData.code);
+gData.adData.checkShowFullInter(1);
+}
 };
 e.prototype.lateUpdate = function() {
 gData.redCodeData.init_data = !1;
@@ -16598,10 +16635,12 @@ e.lbl_cash_out = null;
 e.lbl_cash = null;
 e.node_cash = null;
 e.cur_stage = s.none;
+e.hasWatchVideo = !1;
 return e;
 }
 e.prototype.onLoad = function() {
 this.hb_star.active = !1;
+this.hasWatchVideo = !1;
 this.lbl_reward_value.string = "0";
 };
 e.prototype.start = function() {
@@ -16612,7 +16651,10 @@ this.initCashOutStyle(gData.gameData.gameData.redMoney);
 };
 e.prototype.update = function() {
 gData.reward.add_redbag_value && this.initCashOutStyle(gData.gameData.gameData.redMoney + gData.reward.add_redbag_value);
-gData.reward.adData && this.watchVideoCall();
+if (gData.reward.adData) {
+this.watchVideoCall();
+this.hasWatchVideo = !0;
+}
 };
 e.prototype.lateUpdate = function() {
 gData.reward.add_redbag_value = 0;
@@ -16772,6 +16814,7 @@ l.default.Inst.finalGetScore = 0;
 l.default.Inst.initScore();
 }
 l.default.Inst && l.default.Inst.ifPass ? l.default.Inst.gameCount() : mk.ad.checkShowInterByChance();
+this.hasWatchVideo || gData.adData.checkShowFullInter(2);
 };
 a([ f({
 displayName: "红包类型",
@@ -20453,7 +20496,10 @@ e = mk.math.randomByWeight(this.weights, 100, !1);
 return "<outline color=#000000 width=1><color=#19F7FF>" + n + "</color>成功提现了<color=#FCE300>" + this.moneys[e] + "元</color></outline>";
 };
 e.prototype.onLoad = function() {
+if ("1" == gData.gameData.funOpenData[6]) {
+this.node.active = !0;
 this.play();
+} else this.node.active = !1;
 };
 e.prototype.play = function() {
 this.reset();

+ 2 - 2
packages-hot-update/cfg.json

@@ -13,7 +13,7 @@
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminateTestT/baseRemote/",
         "https://xcx-box.oss-cn-hangzhou.aliyuncs.com/hotgame/EasyEliminateTest/baseRemoteTest/"
     ],
-    "buildTime": 1628490699336,
-    "genTime": 1628490699336,
+    "buildTime": 1628731298312,
+    "genTime": 1628731298312,
     "genVersion": null
 }

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików