wuwangdong пре 4 година
родитељ
комит
781c956fc8

+ 6 - 6
assets/script/game/data/module/WarnTipData.ts

@@ -45,7 +45,7 @@ export default class WarnTipData {
                     let index = tempArr.indexOf(adData.placementId);
                     if (index != -1) {
                         JsbSystem.setFilterAdSourceIdList(adData.placementId, adData.adsourceIds.join(','));
-                        mk.console.log('屏蔽广告位:', adData.placementId + "    广告源拼接:" + adData.adsourceIds.join(','));
+                        console.log('屏蔽广告位:', adData.placementId + "    广告源拼接:" + adData.adsourceIds.join(','));
                         tempArr.splice(index, 1);
                     }
                     else {
@@ -55,14 +55,14 @@ export default class WarnTipData {
 
                 let len1 = tempArr.length;
                 if (len1 > 0) {
-                    mk.console.log('未屏蔽广告位拼接:', tempArr.join(','));
+                    console.log('未屏蔽广告位拼接:', tempArr.join(','));
                     for (let i = 0; i < len1; i++) {
                         JsbSystem.setFilterAdSourceIdList(tempArr[i], '');
                     }
                 }
             }
             else {
-                mk.console.log('不需要屏蔽广告:', this.AdIDArr.join(','));
+                console.log('不需要屏蔽广告:', this.AdIDArr.join(','));
                 let len2 = this.AdIDArr.length;
                 for (let i = 0; i < len2; i++) {
                     JsbSystem.setFilterAdSourceIdList(this.AdIDArr[i], '');
@@ -72,11 +72,11 @@ export default class WarnTipData {
     }
 
     async getUserShutdownAds(callback) {
-        mk.console.log('getUserShutdownAds  ', '调用getUserShutdownAds ');
+        console.log('getUserShutdownAds  ', '调用getUserShutdownAds ');
         let data = {}
         let response = await mk.http.sendData('getUserShutdownAds', data)
         if (response && response.errcode == 0) {
-            mk.console.log('getUserShutdownAds  ', response);
+            mk.console.logSingle('getUserShutdownAds  ', response);
             if (response.data) {
                 gData.warnTipData.setShutdownAds(response.data.shutdown_ads);
             }
@@ -84,7 +84,7 @@ export default class WarnTipData {
             callback();
         }
         else {
-            mk.console.log('getUserShutdownAds 无返回 ', response);
+            mk.console.logSingle('getUserShutdownAds 无返回 ', response);
         }
     }
 }

+ 2 - 3
build/jsb-link/frameworks/runtime-src/proj.android-studio/app/AndroidManifest.xml

@@ -33,6 +33,7 @@
         android:allowBackup="true"
         android:label="@string/app_name"
         android:usesCleartextTraffic="true"
+        android:hardwareAccelerated="true"
         android:icon="@mipmap/ic_launcher">
         <!-- Tell Cocos2dxActivity the name of our .so -->
         <meta-data android:name="android.app.lib_name"
@@ -44,8 +45,7 @@
             android:configChanges="orientation|keyboardHidden|screenSize|screenLayout"
             android:label="@string/app_name"
             android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
-            android:launchMode="singleTask"
-            android:taskAffinity=""
+            android:taskAffinity="com.aries.kncdsf.mz"
             android:keepScreenOn="true">
             <intent-filter>
                 <action android:name="android.intent.action.MAIN" />
@@ -70,7 +70,6 @@
             android:label="@string/app_name"
             android:theme="@android:style/Theme.Translucent.NoTitleBar"
             android:exported="true"
-            android:taskAffinity="com.aries.kncdsf.mz"
             android:launchMode="singleTask">
         </activity>
 

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

@@ -34355,17 +34355,17 @@ for (var e = this.AdIDArr.slice(), a = this.shutdown_ads.length, o = 0; o < a; o
 var n = this.shutdown_ads[o], i = e.indexOf(n.placementId);
 if (-1 != i) {
 r.default.setFilterAdSourceIdList(n.placementId, n.adsourceIds.join(","));
-mk.console.log("屏蔽广告位:", n.placementId + "    广告源拼接:" + n.adsourceIds.join(","));
+console.log("屏蔽广告位:", n.placementId + "    广告源拼接:" + n.adsourceIds.join(","));
 e.splice(i, 1);
 } else console.error("没有对应的广告位:", n.placementId);
 }
 var c = e.length;
 if (c > 0) {
-mk.console.log("未屏蔽广告位拼接:", e.join(","));
+console.log("未屏蔽广告位拼接:", e.join(","));
 for (o = 0; o < c; o++) r.default.setFilterAdSourceIdList(e[o], "");
 }
 } else {
-mk.console.log("不需要屏蔽广告:", this.AdIDArr.join(","));
+console.log("不需要屏蔽广告:", this.AdIDArr.join(","));
 var s = this.AdIDArr.length;
 for (o = 0; o < s; o++) r.default.setFilterAdSourceIdList(this.AdIDArr[o], "");
 }
@@ -34377,16 +34377,16 @@ var e, a;
 return i(this, function(o) {
 switch (o.label) {
 case 0:
-mk.console.log("getUserShutdownAds  ", "调用getUserShutdownAds ");
+console.log("getUserShutdownAds  ", "调用getUserShutdownAds ");
 e = {};
 return [ 4, mk.http.sendData("getUserShutdownAds", e) ];
 
 case 1:
 if ((a = o.sent()) && 0 == a.errcode) {
-mk.console.log("getUserShutdownAds  ", a);
+mk.console.logSingle("getUserShutdownAds  ", a);
 a.data && gData.warnTipData.setShutdownAds(a.data.shutdown_ads);
 t();
-} else mk.console.log("getUserShutdownAds 无返回 ", a);
+} else mk.console.logSingle("getUserShutdownAds 无返回 ", a);
 return [ 2 ];
 }
 });