diff --git a/app.js b/app.js index 84ce811..e508c20 100644 --- a/app.js +++ b/app.js @@ -2,6 +2,11 @@ App({ async onLaunch () { this.login(); + // 移除 2022-12-05 之前的本地存储,因为可能有敏感词存在 + const timestamp = new Date('2022-12-05').getTime(); + const audioList = this.globalData.getAudioList().filter(v => v.time > timestamp); + const storageKey = 'audioList'; + wx.setStorageSync(storageKey, audioList); }, // 将登录态封装进去 // todo: 多个请求同时发起,且登录态都失效时,ssid 会相互覆盖