[bug][6053]【登录】进入B服游玩再退出登录回到选服界面,又默认展示A服入口

main
SunChengyong 2026-05-29 15:06:30 +08:00
parent b28d981056
commit 224d8eb9cd
1 changed files with 3 additions and 1 deletions

View File

@ -247,8 +247,10 @@ public class StorageMgr : Singlenton<StorageMgr>, IUpdatable, IInitable
//PlayerPrefs.DeleteKey(remoteStorageKey);
//PlayerPrefs.DeleteKey(localVersionKey);
//PlayerPrefs.DeleteKey(remoteVersionKey);
var serverIndex = PlayerPrefs.GetInt("ServerIndex", 0);
PlayerPrefs.DeleteAll();//暂时考虑清除所有的数据
PlayerPrefs.SetInt("ServerIndex", serverIndex);
LocalVersion = 0;
RemoteVersion = 0;