修复获取云端收藏数据分组 错误bug

This commit is contained in:
chfei committed 2026-11-16 16:31:19 +08:00
1 parent c8f586d8fc
commit b710e7042e
3 files changed
+14 -16

No files matched your search

+8 -12
View File
@@ -21,19 +21,15 @@ namespace Work.Services
public static List<UserFavoriteGroup> UserGroups { get; private set; }
static CloudGoodsService()
{
GetGroups(BaseClass.UserName).ContinueWith(t =>
_ = GetGroups();
}
public static async Task<List<UserFavoriteGroup>> GetGroups()
{
if (UserGroups == null)
{
if (t.IsFaulted)
{
return;
}
if (t.IsCanceled)
{
return;
}
UserGroups = t.Result;
});
UserGroups = await GetGroups(BaseClass.UserName);
}
return UserGroups;
}
public static async Task<PageData<CloudGoods>> GetGoods(GoodsSearchRequest request)
{