fix: use stable inquiry list links
This commit is contained in:
@@ -17,9 +17,9 @@
|
|||||||
<MudText Typo="Typo.h5">문의 상세</MudText>
|
<MudText Typo="Typo.h5">문의 상세</MudText>
|
||||||
<MudButton Variant="Variant.Filled"
|
<MudButton Variant="Variant.Filled"
|
||||||
Color="Color.Primary"
|
Color="Color.Primary"
|
||||||
Href="@($"/taxbaik/admin/inquiries/{InquiryId}")"
|
Href="/taxbaik/admin/inquiries"
|
||||||
Target="_blank">
|
Target="_blank">
|
||||||
답변 링크 열기
|
문의 목록 열기
|
||||||
</MudButton>
|
</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public class TelegramInquiryNotificationService : IInquiryNotificationService
|
|||||||
if (string.IsNullOrWhiteSpace(botToken) || string.IsNullOrWhiteSpace(chatId))
|
if (string.IsNullOrWhiteSpace(botToken) || string.IsNullOrWhiteSpace(chatId))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var adminLink = $"{_baseUrl}/admin/inquiries/{inquiryId}";
|
var adminLink = $"{_baseUrl}/admin/inquiries";
|
||||||
var summary = message.Length > 180 ? message[..180] + "..." : message;
|
var summary = message.Length > 180 ? message[..180] + "..." : message;
|
||||||
var createdAtKst = createdAtUtc.AddHours(9);
|
var createdAtKst = createdAtUtc.AddHours(9);
|
||||||
var text = new StringBuilder()
|
var text = new StringBuilder()
|
||||||
@@ -41,7 +41,7 @@ public class TelegramInquiryNotificationService : IInquiryNotificationService
|
|||||||
.AppendLine("내용 요약:")
|
.AppendLine("내용 요약:")
|
||||||
.AppendLine(summary)
|
.AppendLine(summary)
|
||||||
.AppendLine()
|
.AppendLine()
|
||||||
.AppendLine($"답변 링크: {adminLink}")
|
.AppendLine($"답변 목록 링크: {adminLink}")
|
||||||
.ToString();
|
.ToString();
|
||||||
|
|
||||||
var client = _httpClientFactory.CreateClient();
|
var client = _httpClientFactory.CreateClient();
|
||||||
@@ -72,7 +72,7 @@ public class TelegramInquiryNotificationService : IInquiryNotificationService
|
|||||||
if (string.IsNullOrWhiteSpace(botToken) || string.IsNullOrWhiteSpace(chatId))
|
if (string.IsNullOrWhiteSpace(botToken) || string.IsNullOrWhiteSpace(chatId))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var adminLink = $"{_baseUrl}/admin/inquiries/{inquiryId}";
|
var adminLink = $"{_baseUrl}/admin/inquiries";
|
||||||
var text = new StringBuilder()
|
var text = new StringBuilder()
|
||||||
.AppendLine("✏️ 문의 상태가 변경되었습니다.")
|
.AppendLine("✏️ 문의 상태가 변경되었습니다.")
|
||||||
.AppendLine()
|
.AppendLine()
|
||||||
@@ -81,7 +81,7 @@ public class TelegramInquiryNotificationService : IInquiryNotificationService
|
|||||||
.AppendLine($"연락처: {phone}")
|
.AppendLine($"연락처: {phone}")
|
||||||
.AppendLine($"상태: {FormatStatus(previousStatus)} -> {FormatStatus(newStatus)}")
|
.AppendLine($"상태: {FormatStatus(previousStatus)} -> {FormatStatus(newStatus)}")
|
||||||
.AppendLine()
|
.AppendLine()
|
||||||
.AppendLine($"답변 링크: {adminLink}")
|
.AppendLine($"답변 목록 링크: {adminLink}")
|
||||||
.ToString();
|
.ToString();
|
||||||
|
|
||||||
var client = _httpClientFactory.CreateClient();
|
var client = _httpClientFactory.CreateClient();
|
||||||
|
|||||||
Reference in New Issue
Block a user