bug修复
This commit is contained in:
parent
a94b0b1a23
commit
a90f0f4583
@ -432,16 +432,16 @@ function LocalData:GetMarktrailHero()
|
||||
end
|
||||
|
||||
function LocalData:saveBattleSnapshot(snapshot)
|
||||
self:setString(LocalData:getRoleKey(LOCAL_DATA_KEY.BATTLE_SNAPSHOT), json.encode(snapshot))
|
||||
if EDITOR_MODE then
|
||||
Logger.logHighlight(json.encode(snapshot))
|
||||
end
|
||||
self:setString(LocalData:getRoleKey(LOCAL_DATA_KEY.BATTLE_SNAPSHOT), json.encode(snapshot))
|
||||
end
|
||||
|
||||
function LocalData:getBattleSnapshot()
|
||||
local dealedSnapshot = self:getString(LocalData:getRoleKey(LOCAL_DATA_KEY.BATTLE_SNAPSHOT), "{}")
|
||||
if EDITOR_MODE then
|
||||
Logger.logHighlight(json.decode(dealedSnapshot))
|
||||
Logger.logHighlight(dealedSnapshot)
|
||||
end
|
||||
return json.decode(dealedSnapshot)
|
||||
end
|
||||
|
||||
@ -983,6 +983,7 @@ function UIManager:backToLogin()
|
||||
end
|
||||
|
||||
function UIManager:backToLoginWithoutLogout()
|
||||
self:hideMessageBox()
|
||||
self:stopCurrentBGM()
|
||||
ModuleManager.TutorialManager:stopTutorial()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user