去掉大部分 调试信息
This commit is contained in:
@@ -81,13 +81,13 @@ async function getOrCreaterUser(db, openid) {
|
||||
});
|
||||
userData._id = addResult._id;
|
||||
|
||||
console.log(`新用户已创建: ${openid}, 版本: ${initData.data_version}`);
|
||||
// console.log(`新用户已创建: ${openid}, 版本: ${initData.data_version}`);
|
||||
} else {
|
||||
userData = res.data[0];
|
||||
|
||||
// 检查数据版本兼容性
|
||||
const versionCheck = checkDataVersionCompatibility(userData.data_version);
|
||||
console.log(`用户 ${openid} 数据版本检查:`, versionCheck);
|
||||
// console.log(`用户 ${openid} 数据版本检查:`, versionCheck);
|
||||
|
||||
if (versionCheck.needsUpgrade) {
|
||||
// 使用新的数据管理系统合并和升级数据
|
||||
@@ -110,7 +110,7 @@ async function getOrCreaterUser(db, openid) {
|
||||
userData.equips = upgradedData.equips;
|
||||
userData.data_version = upgradedData.data_version;
|
||||
|
||||
console.log(`用户 ${openid} 数据已升级到版本: ${upgradedData.data_version}`);
|
||||
// console.log(`用户 ${openid} 数据已升级到版本: ${upgradedData.data_version}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user