both revert + docker fix

This commit is contained in:
linmeideli committed 2026-09-25 10:26:21 +08:00
1 parent edfff9ae19
commit a2daa01993
4 files changed
+13 -1

No files matched your search

+1
View File
@@ -25,6 +25,7 @@ WORKDIR /source
COPY src/Empostor.Server/Empostor.Server.csproj ./src/Empostor.Server/
COPY src/Empostor.Api/Empostor.Api.csproj ./src/Empostor.Api/
COPY src/Empostor.Api.Innersloth.Generator/Empostor.Api.Innersloth.Generator.csproj ./src/Empostor.Api.Innersloth.Generator/
COPY src/Empostor.Plugins.PlayerLog/Empostor.Plugins.PlayerLog.csproj ./src/Empostor.Plugins.PlayerLog/
COPY src/NextFast.Hazel-New/Next.Hazel/Next.Hazel.csproj ./src/NextFast.Hazel-New/Next.Hazel/
COPY src/NextFast.Hazel-New/Next.Hazel.Abstractions/Next.Hazel.Abstractions.csproj ./src/NextFast.Hazel-New/Next.Hazel.Abstractions/
COPY src/Directory.Build.props ./src/
+1
View File
@@ -3,6 +3,7 @@ namespace Empostor.Api.Config;
public enum AuthApiMode
{
Innersloth,
Both,
Ume,
}
@@ -221,6 +221,16 @@ public sealed class TokenController : ControllerBase
friendCode = await FetchFromUmeAsync(eosToken, productUserId);
}
if (string.IsNullOrEmpty(friendCode) && mode == AuthApiMode.Both)
{
_logger.LogDebug("TokenController Both mode: trying Ume first, then Innersloth");
friendCode = await FetchFromUmeAsync(eosToken, productUserId);
if (string.IsNullOrEmpty(friendCode))
{
friendCode = await FetchFromInnerslothAsync(eosToken, productUserId);
}
}
if (string.IsNullOrEmpty(friendCode) && mode == AuthApiMode.Innersloth)
{
friendCode = await FetchFromInnerslothAsync(eosToken, productUserId);
+1 -1
View File
@@ -43,7 +43,7 @@
"GameRecorderPath": ""
},
"AuthApi": {
"Mode": "Ume",
"Mode": "Both",
"UmeApiBaseUrl": "https://auverify.hayashiume.top",
"UmeApiKey": "sk-empostor-globalapikey"
},