diff --git a/Assets/00.StaryEvo/Editor/BuildAsset/BuildAssetWindow.cs b/Assets/00.StaryEvo/Editor/BuildAsset/BuildAssetWindow.cs index 7bfaefc..c849e62 100644 --- a/Assets/00.StaryEvo/Editor/BuildAsset/BuildAssetWindow.cs +++ b/Assets/00.StaryEvo/Editor/BuildAsset/BuildAssetWindow.cs @@ -93,9 +93,6 @@ namespace Stary.Evo.Editor [InfoBox("@ message", InfoMessageType.Info)] public async void LoginButton() { - PlayerPrefs.SetString("LoginIp", ip); - PlayerPrefs.SetString("LoginUserName", userName); - PlayerPrefs.SetString("LoginPassword", password); string url = ip + "/Authentication/login"; EditorUtility.DisplayProgressBar("提示", $"登陆中~", 0f); bool islogin = await WebRequestSystem.Login(url, userName, password); @@ -116,9 +113,19 @@ namespace Stary.Evo.Editor public async void UpdateMessage(bool islogin) { message = "当前登录状态为:" + islogin; - ip = PlayerPrefs.GetString("LoginIp"); - userName = PlayerPrefs.GetString("LoginUserName"); - password = PlayerPrefs.GetString("LoginPassword"); + //初始化读取资源配置表 + HotfixMainResDomain hotfixMainResDomain = Resources.Load("HotfixMainResDomain"); + if (hotfixMainResDomain == null) + { + Debug.LogError($"UnityEvo:读取资源配置表失败【HotfixMainResDomain】...表不存在"); + } + else + { + ip = hotfixMainResDomain.hotfixMainResDomainEntity.ipconfig; + userName = hotfixMainResDomain.hotfixMainResDomainEntity.username; + password = hotfixMainResDomain.hotfixMainResDomainEntity.password; + } + if (islogin) { buildAssetType = BuildAssetType.Build; diff --git a/Assets/00.StaryEvo/package.json b/Assets/00.StaryEvo/package.json index 3f5eeee..cf09475 100644 --- a/Assets/00.StaryEvo/package.json +++ b/Assets/00.StaryEvo/package.json @@ -1,6 +1,6 @@ { "name": "com.staryevo.main", - "version": "1.2.15", + "version": "1.2.16", "displayName": "00.StaryEvo", "description": "This is an Framework package(后台服务器版本,端口9527)", "unity": "2021.3",