【m】框架大更新
This commit is contained in:
@@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace Stary.Evo
|
||||
{
|
||||
[Obsolete("推荐使用 EnumEventSystem",false)]
|
||||
|
||||
public class StringEventSystem
|
||||
{
|
||||
public static readonly StringEventSystem Global = new StringEventSystem();
|
||||
|
||||
@@ -65,7 +65,7 @@ namespace Stary.Evo
|
||||
await CurState.OnExitAsync();
|
||||
FSMIStateAsync state = GetStateWithName(name);
|
||||
CurState = state;
|
||||
CurState.OnEnterAsync();
|
||||
await CurState.OnEnterAsync();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -106,7 +106,7 @@ namespace Stary.Evo
|
||||
{
|
||||
|
||||
using UnityWebRequest webRequest =
|
||||
new UnityWebRequest($"{url}?token={authorization}", UnityWebRequest.kHttpVerbGET);
|
||||
new UnityWebRequest($"{url}/{authorization}", UnityWebRequest.kHttpVerbGET);
|
||||
//using UnityWebRequest webRequest = UnityWebRequest.Get($"{url}?token={authorization}");
|
||||
webRequest.downloadHandler = new DownloadHandlerBuffer();
|
||||
webRequest.timeout = 10;
|
||||
@@ -393,7 +393,7 @@ namespace Stary.Evo
|
||||
webRequest.disposeUploadHandlerOnDispose = true;
|
||||
webRequest.disposeDownloadHandlerOnDispose = true;
|
||||
webRequest.disposeCertificateHandlerOnDispose = true;
|
||||
webRequest.timeout = 20;
|
||||
webRequest.timeout = 30;
|
||||
await webRequest.SendWebRequest();
|
||||
webRequest.uploadHandler?.Dispose();
|
||||
// 更新错误检查方式
|
||||
|
||||
@@ -11,12 +11,25 @@ namespace Stary.Evo
|
||||
public string Platform { get; set; }
|
||||
public string DocumentFileId { get; set; }
|
||||
}
|
||||
public struct ResDmainUpdateRequst
|
||||
{
|
||||
|
||||
public string ProductName { get; set; }
|
||||
public string DomainName { get; set; }
|
||||
public string Platform { get; set; }
|
||||
public bool IsEnabled { get; set; }
|
||||
|
||||
}
|
||||
public struct ResDmainRequst
|
||||
{
|
||||
public string ProductName { get; set; }
|
||||
public string DomainName { get; set; }
|
||||
public string Platform { get; set; }
|
||||
}
|
||||
public struct ResProductRequst
|
||||
{
|
||||
public string ProductName { get; set; }
|
||||
|
||||
public string Platform { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,5 @@
|
||||
|
||||
|
||||
namespace Stary.Evo
|
||||
{
|
||||
|
||||
public struct ResDmainVersionResponse
|
||||
{
|
||||
public string ProductName { get; set; }
|
||||
@@ -16,6 +13,7 @@ namespace Stary.Evo
|
||||
public string ProductName { get; set; }
|
||||
public string DomainName { get; set; }
|
||||
public string Platform { get; set; }
|
||||
public bool IsEnable { get; set; }
|
||||
public string PackageVersion { get; set; }
|
||||
public string DocumentFileId { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user