mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
fix 1.7.7 log upload issue
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user