feat: 删除无用的console输出

This commit is contained in:
Blizzard
2026-02-14 13:17:05 +08:00
parent d6f781a666
commit 2d8ffd842a
7 changed files with 14 additions and 13 deletions
+4 -4
View File
@@ -26,7 +26,7 @@ Page({
try {
// Fetch levels
const levelRes = await request.get('/config/level/list');
console.log('Level Detail - API Response:', levelRes);
let list = [];
if (levelRes) {
@@ -41,14 +41,14 @@ Page({
}
}
console.log('Level Detail - Parsed List:', list);
list.sort((a, b) => a.minSunlight - b.minSunlight);
// Fetch profile if sunlight not passed
let currentSunlight = passedSunlight;
if (currentSunlight === undefined) {
const profileRes = await request.get('/profile/detail');
console.log('Level Detail - Profile:', profileRes);
currentSunlight = profileRes.totalSunlight || 0;
this.setData({ currentSunlight });
}
@@ -63,7 +63,7 @@ Page({
}
}
console.log('Level Detail - Calculated Level:', currentLevel);
this.setData({
levels: list,
+1 -1
View File
@@ -130,7 +130,7 @@ Page({
// Open WeChat notification settings
wx.openSetting({
success: (res) => {
console.log('Settings opened', res);
}
});
},