修改框架配置

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)] [InfoBox("@ message", InfoMessageType.Info)]
public async void LoginButton() public async void LoginButton()
{ {
PlayerPrefs.SetString("LoginIp", ip);
PlayerPrefs.SetString("LoginUserName", userName);
PlayerPrefs.SetString("LoginPassword", password);
string url = ip + "/Authentication/login"; string url = ip + "/Authentication/login";
EditorUtility.DisplayProgressBar("提示", $"登陆中~", 0f); EditorUtility.DisplayProgressBar("提示", $"登陆中~", 0f);
bool islogin = await WebRequestSystem.Login(url, userName, password); bool islogin = await WebRequestSystem.Login(url, userName, password);
@@ -116,9 +113,19 @@ namespace Stary.Evo.Editor
public async void UpdateMessage(bool islogin) public async void UpdateMessage(bool islogin)
{ {
message = "当前登录状态为:" + islogin; message = "当前登录状态为:" + islogin;
ip = PlayerPrefs.GetString("LoginIp"); //初始化读取资源配置表
userName = PlayerPrefs.GetString("LoginUserName"); HotfixMainResDomain hotfixMainResDomain = Resources.Load<HotfixMainResDomain>("HotfixMainResDomain");
password = PlayerPrefs.GetString("LoginPassword"); if (hotfixMainResDomain == null)
{
Debug.LogError($"UnityEvo:读取资源配置表失败【HotfixMainResDomain】...表不存在");
}
else
{
ip = hotfixMainResDomain.hotfixMainResDomainEntity.ipconfig;
userName = hotfixMainResDomain.hotfixMainResDomainEntity.username;
password = hotfixMainResDomain.hotfixMainResDomainEntity.password;
}
if (islogin) if (islogin)
{ {
buildAssetType = BuildAssetType.Build; buildAssetType = BuildAssetType.Build;

View File

@@ -1,6 +1,6 @@
{ {
"name": "com.staryevo.main", "name": "com.staryevo.main",
"version": "1.2.15", "version": "1.2.16",
"displayName": "00.StaryEvo", "displayName": "00.StaryEvo",
"description": "This is an Framework package(后台服务器版本端口9527)", "description": "This is an Framework package(后台服务器版本端口9527)",
"unity": "2021.3", "unity": "2021.3",