修正一处uid可能导致uid获取失败的case
This commit is contained in:
parent
2c35bf1153
commit
d2446a878e
|
@ -206,6 +206,7 @@ export default class NoteUser extends BaseModel {
|
|||
|
||||
/** 获取当前UID */
|
||||
getUid (game = 'gs') {
|
||||
game = this.game(game)
|
||||
// todo 刷新uid
|
||||
let ds = this.getGameDs(game)
|
||||
if (!ds.uid) {
|
||||
|
@ -260,6 +261,7 @@ export default class NoteUser extends BaseModel {
|
|||
}
|
||||
|
||||
getGameDs (game = 'gs') {
|
||||
game = this.gameKey(game)
|
||||
if (!this._games[game]) {
|
||||
this._games[game] = {
|
||||
uid: '',
|
||||
|
|
Loading…
Reference in New Issue