Switch OSS upload function endpoint
This commit is contained in:
parent
45f3cffd73
commit
6c1de79a8f
@ -131,7 +131,6 @@ namespace Logic.Editor
|
||||
private OssUploadService _uploadService;
|
||||
private StsCredentials _cachedCredentials;
|
||||
private StsCredentials _cachedCollectCredentials;
|
||||
private const string FunctionUrl = "https://get-sts-token-qltjykaafr.cn-shanghai.fcapp.run";
|
||||
private bool _mapTestsFoldout;
|
||||
private bool _collectTestsFoldout;
|
||||
|
||||
@ -179,7 +178,7 @@ namespace Logic.Editor
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
_stsService = new StsTokenService(FunctionUrl);
|
||||
_stsService = new StsTokenService(OssServiceConfig.FunctionUrl);
|
||||
_uploadService = new OssUploadService();
|
||||
_accessKeyId = EditorPrefs.GetString(PrefKeyAccessKeyId, "");
|
||||
_accessKeySecret = EditorPrefs.GetString(PrefKeyAccessKeySecret, "");
|
||||
@ -1296,4 +1295,4 @@ namespace Logic.Editor
|
||||
return s.Replace("\\", "\\\\").Replace("\"", "\\\"").Replace("\n", "\\n").Replace("\r", "\\r");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -194,8 +194,6 @@ namespace Logic.Editor
|
||||
|
||||
public class SteamUploadFlowTestEditorWindow : EditorWindow
|
||||
{
|
||||
private const string FunctionUrl = "https://get-sts-token-qltjykaafr.cn-shanghai.fcapp.run";
|
||||
|
||||
private Vector2 _scrollPosition;
|
||||
private GUIStyle _whiteBoxStyle;
|
||||
private GUIStyle _sectionHeaderStyle;
|
||||
@ -226,7 +224,7 @@ namespace Logic.Editor
|
||||
|
||||
private void OnEnable()
|
||||
{
|
||||
_stsService = new StsTokenService(FunctionUrl);
|
||||
_stsService = new StsTokenService(OssServiceConfig.FunctionUrl);
|
||||
_uploadService = new OssUploadService();
|
||||
|
||||
if (string.IsNullOrEmpty(_version))
|
||||
|
||||
@ -20,7 +20,6 @@ namespace TH1_Logic.Oss
|
||||
public class OssManager
|
||||
{
|
||||
public static OssManager Instance = new OssManager();
|
||||
private const string FunctionUrl = "https://get-sts-token-qltjykaafr.cn-shanghai.fcapp.run";
|
||||
|
||||
private readonly StsTokenService _stsService;
|
||||
private readonly OssUploadService _uploadService;
|
||||
@ -42,7 +41,7 @@ namespace TH1_Logic.Oss
|
||||
|
||||
public OssManager()
|
||||
{
|
||||
_stsService = new StsTokenService(FunctionUrl);
|
||||
_stsService = new StsTokenService(OssServiceConfig.FunctionUrl);
|
||||
_uploadService = new OssUploadService();
|
||||
}
|
||||
|
||||
|
||||
@ -26,6 +26,11 @@ namespace TH1_Logic.Oss
|
||||
public int expiresIn;
|
||||
}
|
||||
|
||||
public static class OssServiceConfig
|
||||
{
|
||||
public const string FunctionUrl = "https://th-server-wacofbdanv.cn-beijing.fcapp.run";
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
public class SteamAuthWarmupResponse
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user