修改userId

This commit is contained in:
huanghaipeng 2025-10-13 14:19:23 +08:00
parent 18459ab0f4
commit 7848545253
2 changed files with 7 additions and 5 deletions

View File

@ -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": {

View File

@ -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