修改框架配置

This commit is contained in:
2025-06-13 11:09:42 +08:00
parent 0acdc11e20
commit 4472d1081c
2 changed files with 14 additions and 7 deletions

View File

@@ -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>("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;