修复获取云端收藏数据分组 错误bug
This commit is contained in:
1 parent
c8f586d8fc
commit
b710e7042e
3 files changed
+14
-16
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user