fix 1.7.7 log upload issue

This commit is contained in:
DismissedLight
2023-10-11 22:28:10 +08:00
parent 61dd098d95
commit 20ad9aec60
3 changed files with 14 additions and 1 deletions

View File

@@ -95,6 +95,12 @@
Header="Compensation GachaLog Service Time For 15 Days"
IsClickEnabled="True"/>
<cwc:SettingsCard Header="Crash">
<StackPanel Orientation="Horizontal">
<Button Command="{Binding ExceptionCommand}" Content="Activate"/>
</StackPanel>
</cwc:SettingsCard>
<Expander
HorizontalAlignment="Stretch"
HorizontalContentAlignment="Stretch"
@@ -120,6 +126,7 @@
<Button Command="{Binding UploadAnnouncementCommand}" Content="Upload"/>
</StackPanel>
</Expander>
</StackPanel>
</ScrollViewer>
</shc:ScopedPage>

View File

@@ -50,6 +50,12 @@ internal sealed partial class TestViewModel : Abstraction.ViewModel
LocalSetting.Set(SettingKeys.Major1Minor7Revision0GuideState, (uint)GuideState.Language);
}
[Command("ExceptionCommand")]
private static void ThrowTestException()
{
Must.NeverHappen();
}
[Command("ResetMainWindowSizeCommand")]
private void ResetMainWindowSize()
{

View File

@@ -31,7 +31,7 @@ internal sealed partial class HomaLogUploadClient
public async ValueTask<string?> UploadLogAsync(Exception exception)
{
HttpRequestMessageBuilder builder = httpRequestMessageBuilderFactory.Create()
.SetRequestUri(HutaoEndpoints.GachaLogUpload)
.SetRequestUri(HutaoEndpoints.HutaoLogUpload)
.PostJson(BuildFromException(exception));
Response<string>? resp = await builder