From 8f71d7f9e5ea88bfd4aba248e7f9fb5c25cb6e64 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Mon, 6 Oct 2025 12:46:25 +0800 Subject: [PATCH] :bug: Fix some bugs --- DysonNetwork.Pass/Auth/OpenId/OidcService.cs | 4 ++-- DysonNetwork.Shared/Proto/develop.proto | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DysonNetwork.Pass/Auth/OpenId/OidcService.cs b/DysonNetwork.Pass/Auth/OpenId/OidcService.cs index 617ce7d..25545e1 100644 --- a/DysonNetwork.Pass/Auth/OpenId/OidcService.cs +++ b/DysonNetwork.Pass/Auth/OpenId/OidcService.cs @@ -57,7 +57,7 @@ public abstract class OidcService( { ClientId = Configuration[$"Oidc:{ConfigSectionName}:ClientId"] ?? "", ClientSecret = Configuration[$"Oidc:{ConfigSectionName}:ClientSecret"] ?? "", - RedirectUri = Configuration["BaseUrl"] + "/auth/callback/" + ProviderName.ToLower() + RedirectUri = Configuration["SiteUrl"] + "/auth/callback/" + ProviderName.ToLower() }; } @@ -292,4 +292,4 @@ public class OidcCallbackData public string IdToken { get; set; } = ""; public string? State { get; set; } public string? RawData { get; set; } -} \ No newline at end of file +} diff --git a/DysonNetwork.Shared/Proto/develop.proto b/DysonNetwork.Shared/Proto/develop.proto index 834b16c..3fead5b 100644 --- a/DysonNetwork.Shared/Proto/develop.proto +++ b/DysonNetwork.Shared/Proto/develop.proto @@ -115,8 +115,8 @@ message BotAccount { message CreateBotAccountRequest { Account account = 1; string automated_id = 2; - optional string picture_id = 8; - optional string background_id = 9; + google.protobuf.StringValue picture_id = 8; + google.protobuf.StringValue background_id = 9; } message CreateBotAccountResponse { @@ -182,4 +182,4 @@ service BotAccountReceiverService { rpc RotateApiKey(GetApiKeyRequest) returns (ApiKey); rpc DeleteApiKey(GetApiKeyRequest) returns (DeleteApiKeyResponse); } - \ No newline at end of file +