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