This commit is contained in:
DismissedLight
2023-08-19 16:40:22 +08:00
parent 7e5a536119
commit 674002ee8d

View File

@@ -153,12 +153,16 @@ internal sealed partial class SpiralAbyssRecordViewModel : Abstraction.ViewModel
SimpleRecord? record = await spiralAbyssClient.GetPlayerRecordAsync(userAndUid).ConfigureAwait(false);
if (record is not null)
{
Web.Response.Response<string> response = await spiralAbyssClient.UploadRecordAsync(record).ConfigureAwait(false);
Web.Response.Response response = await spiralAbyssClient.UploadRecordAsync(record).ConfigureAwait(false);
if (response.IsOk())
if (response is { ReturnCode: 0 })
{
infoBarService.Success(response.Message);
}
else
{
infoBarService.Warning(response.Message);
}
}
}
else