mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.git
synced 2025-11-19 21:02:53 +08:00
try fix dailynote notification user sync
This commit is contained in:
@@ -46,14 +46,21 @@ internal sealed partial class DailyNoteNotificationOperation
|
|||||||
|
|
||||||
string? attribution = SH.ServiceDailyNoteNotifierAttribution;
|
string? attribution = SH.ServiceDailyNoteNotifierAttribution;
|
||||||
|
|
||||||
Response<ListWrapper<UserGameRole>> rolesResponse = await bindingClient
|
if (entry.UserGameRole is not null)
|
||||||
.GetUserGameRolesOverseaAwareAsync(entry.User)
|
|
||||||
.ConfigureAwait(false);
|
|
||||||
|
|
||||||
if (rolesResponse.IsOk())
|
|
||||||
{
|
{
|
||||||
List<UserGameRole> roles = rolesResponse.Data.List;
|
attribution = entry.UserGameRole.ToString();
|
||||||
attribution = roles.SingleOrDefault(r => r.GameUid == entry.Uid)?.ToString() ?? ToastAttributionUnknown;
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Response<ListWrapper<UserGameRole>> rolesResponse = await bindingClient
|
||||||
|
.GetUserGameRolesOverseaAwareAsync(entry.User)
|
||||||
|
.ConfigureAwait(false);
|
||||||
|
|
||||||
|
if (rolesResponse.IsOk())
|
||||||
|
{
|
||||||
|
List<UserGameRole> roles = rolesResponse.Data.List;
|
||||||
|
attribution = roles.SingleOrDefault(r => r.GameUid == entry.Uid)?.ToString() ?? ToastAttributionUnknown;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ToastContentBuilder builder = new ToastContentBuilder()
|
ToastContentBuilder builder = new ToastContentBuilder()
|
||||||
|
|||||||
Reference in New Issue
Block a user