zouyong 5 лет назад
Родитель
Сommit
f1750d6570

+ 2 - 2
assets/Scenes/Main.scene

@@ -109,7 +109,7 @@
     "node": {
       "__id__": 2
     },
-    "_enabled": true,
+    "_enabled": false,
     "__prefab": null,
     "adUnlockNodes": [
       {
@@ -2895,7 +2895,7 @@
     "node": {
       "__id__": 9
     },
-    "_enabled": true,
+    "_enabled": false,
     "__prefab": null,
     "beginHandler": {
       "__id__": 158

+ 4 - 4
assets/Scripts/UI/MainUI/UINumerical.ts

@@ -48,10 +48,10 @@ export class UINumerical extends Component {
         for (let k in result) {
             this.lvConfig.push(result[k]);
         }
-        let ecpm = await this.http.send("/api/user/GetAverageEcpm");
-        if (ecpm.code == 0) {
-            g.userData.ecpm = ecpm.data;
-        }
+        // let ecpm = await this.http.send("/api/user/GetAverageEcpm");
+        // if (ecpm.code == 0) {
+        //     g.userData.ecpm = ecpm.data;
+        // }
 
         game.on(Game.EVENT_HIDE, function () {
             console.log("Game Hide");

+ 4 - 0
assets/Scripts/core/ui/BitmapFont.ts

@@ -26,6 +26,10 @@ export class BitmapFont extends Component {
         return this._string;
     }
     public set string(value: string) {
+        if(value == 'undefined'){
+            Log.error(`字符出错${value}`);
+            return;
+        }
         this._string = value + "";
         for (let i = 0; i < this.string.length; i++) {
             let child = this.node.children[i];