修正一处uid可能导致uid获取失败的case

This commit is contained in:
Kokomi 2023-06-04 05:32:19 +08:00
parent 2c35bf1153
commit d2446a878e
1 changed files with 2 additions and 0 deletions

View File

@ -206,6 +206,7 @@ export default class NoteUser extends BaseModel {
/** 获取当前UID */ /** 获取当前UID */
getUid (game = 'gs') { getUid (game = 'gs') {
game = this.game(game)
// todo 刷新uid // todo 刷新uid
let ds = this.getGameDs(game) let ds = this.getGameDs(game)
if (!ds.uid) { if (!ds.uid) {
@ -260,6 +261,7 @@ export default class NoteUser extends BaseModel {
} }
getGameDs (game = 'gs') { getGameDs (game = 'gs') {
game = this.gameKey(game)
if (!this._games[game]) { if (!this._games[game]) {
this._games[game] = { this._games[game] = {
uid: '', uid: '',