bug修复

This commit is contained in:
xiekaidong 2023-08-01 18:20:35 +08:00
parent a94b0b1a23
commit a90f0f4583
2 changed files with 3 additions and 2 deletions

View File

@ -432,16 +432,16 @@ function LocalData:GetMarktrailHero()
end end
function LocalData:saveBattleSnapshot(snapshot) function LocalData:saveBattleSnapshot(snapshot)
self:setString(LocalData:getRoleKey(LOCAL_DATA_KEY.BATTLE_SNAPSHOT), json.encode(snapshot))
if EDITOR_MODE then if EDITOR_MODE then
Logger.logHighlight(json.encode(snapshot)) Logger.logHighlight(json.encode(snapshot))
end end
self:setString(LocalData:getRoleKey(LOCAL_DATA_KEY.BATTLE_SNAPSHOT), json.encode(snapshot))
end end
function LocalData:getBattleSnapshot() function LocalData:getBattleSnapshot()
local dealedSnapshot = self:getString(LocalData:getRoleKey(LOCAL_DATA_KEY.BATTLE_SNAPSHOT), "{}") local dealedSnapshot = self:getString(LocalData:getRoleKey(LOCAL_DATA_KEY.BATTLE_SNAPSHOT), "{}")
if EDITOR_MODE then if EDITOR_MODE then
Logger.logHighlight(json.decode(dealedSnapshot)) Logger.logHighlight(dealedSnapshot)
end end
return json.decode(dealedSnapshot) return json.decode(dealedSnapshot)
end end

View File

@ -983,6 +983,7 @@ function UIManager:backToLogin()
end end
function UIManager:backToLoginWithoutLogout() function UIManager:backToLoginWithoutLogout()
self:hideMessageBox()
self:stopCurrentBGM() self:stopCurrentBGM()
ModuleManager.TutorialManager:stopTutorial() ModuleManager.TutorialManager:stopTutorial()