From ea059cbc25a1435f6b478af0bae7aad0b75b606c Mon Sep 17 00:00:00 2001 From: ningmengchongshui <916415899@qq.com> Date: Fri, 14 Jun 2024 11:13:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BB=91=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mys/NoteUser.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mys/NoteUser.ts b/src/mys/NoteUser.ts index 14ed05c..28ccf6f 100644 --- a/src/mys/NoteUser.ts +++ b/src/mys/NoteUser.ts @@ -18,7 +18,7 @@ export default class NoteUser extends BaseModel { qq = null - mysUsers = null + mysUsers: any = {} _map = null /** @@ -343,7 +343,7 @@ export default class NoteUser extends BaseModel { this.save() } - _games = null + _games = {} /** * @@ -352,6 +352,9 @@ export default class NoteUser extends BaseModel { */ getGameDs(game = 'gs') { game = this.gameKey(game) + if (!this._games) { + this._games = {} + } if (!this._games[game]) { this._games[game] = { uid: '',