修正一处uid可能导致uid获取失败的case
This commit is contained in:
parent
2c35bf1153
commit
d2446a878e
|
@ -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: '',
|
||||||
|
|
Loading…
Reference in New Issue