From 78485452533c17e0dc8ae82c9100d2e74ebf05eb Mon Sep 17 00:00:00 2001 From: huanghaipeng Date: Mon, 13 Oct 2025 14:19:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9userId?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/Scene/GameScene.fire | 6 ++++-- assets/Script/Sdk/MiniGameSdk.ts | 6 +++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/assets/Scene/GameScene.fire b/assets/Scene/GameScene.fire index 353ae20..2bb56be 100644 --- a/assets/Scene/GameScene.fire +++ b/assets/Scene/GameScene.fire @@ -4097,7 +4097,9 @@ "__id__": 80 }, "_enabled": true, - "_normalMaterial": null, + "_normalMaterial": { + "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432" + }, "_grayMaterial": null, "duration": 0.1, "zoomScale": 1.1, @@ -4107,7 +4109,7 @@ } ], "_N$interactable": true, - "_N$enableAutoGrayEffect": false, + "_N$enableAutoGrayEffect": true, "_N$transition": 3, "transition": 3, "_N$normalColor": { diff --git a/assets/Script/Sdk/MiniGameSdk.ts b/assets/Script/Sdk/MiniGameSdk.ts index 0d7a750..de24d67 100644 --- a/assets/Script/Sdk/MiniGameSdk.ts +++ b/assets/Script/Sdk/MiniGameSdk.ts @@ -1231,7 +1231,7 @@ export namespace MiniGameSdk { let appId = "343b7f1db0e645d293d67827fbdab63a"; // 测试服 let test = cc.fx.GameTool.getWechatGameVersion(); if (test == "正式版") { - appId = "87d18958cea145f29d3265470ecd3486"; + appId = "318a8af86d344fb3be590cc98ab7556f"; } const isProduction = test === '正式版'; // 假设使用 NODE_ENV 区分环境 var config = { @@ -1314,7 +1314,7 @@ export namespace MiniGameSdk { current_level: (cc.fx.GameConfig.GM_INFO.level + 1), //当前关卡等级 number current_health: cc.fx.GameConfig.GM_INFO.hp, //当前体力值 version: cc.fx.GameConfig.GM_INFO.version.toString(),//当前版本号 - user_id: cc.fx.GameConfig.GM_INFO.uid.toString() //用户id + user_id: cc.fx.GameConfig.GM_INFO.userId //用户id }; if (register_time != null) { // console.log("设置用户公共属性注册:————————————", register_time); @@ -1323,7 +1323,7 @@ export namespace MiniGameSdk { current_health: cc.fx.GameConfig.GM_INFO.hp, //当前体力值 version: cc.fx.GameConfig.GM_INFO.version.toString(), register_time: register_time, - user_id: cc.fx.GameConfig.GM_INFO.uid.toString(), //用户id + user_id: cc.fx.GameConfig.GM_INFO.userId, //用户id }; } // @ts-ignore