修改框架配置
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user