|
@@ -306,7 +306,6 @@ const MAX_HEROES_COUNT = 21 // 棋盘所能容纳的最大英雄上限
|
|
|
const MAX_PLAYER_LEVEL = 9 // 玩家最大等级
|
|
|
const MIN_PLAYER_LEVEL = 1 // 玩家最小等级
|
|
|
const LOCALSTORAGE_KEY = '__ydzySimulatorUserInfo'
|
|
|
-let UID = ''
|
|
|
|
|
|
let fetters
|
|
|
const original = {}
|
|
@@ -577,10 +576,9 @@ export default {
|
|
|
login(){
|
|
|
if(!this.isLogin) {
|
|
|
dwUDBProxy.multiLogin(() => {
|
|
|
- UID = dwUDBProxy.getUid()
|
|
|
this.isLogin = true
|
|
|
if(!localStorage.getItem(LOCALSTORAGE_KEY)) {
|
|
|
- getUserInfo(UID).then(res => {
|
|
|
+ getUserInfo().then(res => {
|
|
|
localStorage.setItem(LOCALSTORAGE_KEY, JSON.stringify(res.data))
|
|
|
this.nickname = res.data.nickname
|
|
|
})
|
|
@@ -768,8 +766,6 @@ export default {
|
|
|
this.heroes = data.hero.data
|
|
|
this.littleHeroes = data.littleHero.data
|
|
|
|
|
|
-
|
|
|
- console.log(data)
|
|
|
})
|
|
|
|
|
|
}
|