diff --git a/pages/leaderboard/leaderboard.js b/pages/leaderboard/leaderboard.js index 2df1620..5c9afc5 100644 --- a/pages/leaderboard/leaderboard.js +++ b/pages/leaderboard/leaderboard.js @@ -66,14 +66,11 @@ Page({ if (cb) cb() }).catch((err) => { // Cloud function not deployed or network error — fall back to - // local data. Only show a toast if we have nothing to display - // yet (avoid confusing toast when a retry already has data). + // local data silently. No toast here: empty day-leaderboard is + // normal (user didn't train today), and a toast would mislead + // them into thinking the cloud is broken. console.warn('[leaderboard] cloud function failed, using local fallback:', err) - const hadData = this.data.rankedList && this.data.rankedList.length > 0 this._applyLocal() - if (!hadData && (!this.data.rankedList || this.data.rankedList.length === 0)) { - wx.showToast({ title: '云端榜单暂不可用', icon: 'none', duration: 2000 }) - } if (cb) cb() }) },