From 4472d1081cb0f9c4199b56d18c0d4b4090d49008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=93=AE?= <834207172@qq.com> Date: Fri, 13 Jun 2025 11:09:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=A1=86=E6=9E=B6=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Editor/BuildAsset/BuildAssetWindow.cs | 19 +++++++++++++------ Assets/00.StaryEvo/package.json | 2 +- 2 files changed, 14 insertions(+), 7 deletions(-) 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",