|
@@ -120,7 +120,7 @@ namespace JiaZhiQuan.Common
|
|
|
// 过滤已看过的,如果未看的内容不足最大推荐数量,则将已看内容添加至未看列表末尾
|
|
|
var filterRst = (await rpcClient.InvokeRpcAsync(repository.Context, "UserVisitService", "FilterNotExist", string.Join(',', list1.Select(e => $"{userId}_{e.id}")))).Data;
|
|
|
var filteredList = (JsonConvert.DeserializeObject<string>(filterRst) ?? string.Empty).Split(',', StringSplitOptions.RemoveEmptyEntries).Select(e => long.Parse(e.Split('_')[1])).ToHashSet();
|
|
|
- if (filteredList.Count > 0)
|
|
|
+ if (filteredList.Count() > 0)
|
|
|
{
|
|
|
var validList = new List<PostScore>();
|
|
|
var readList = new List<PostScore>();
|
|
@@ -546,7 +546,7 @@ namespace JiaZhiQuan.Common
|
|
|
mustConditions.Add(new { term = new { type = 1 } });
|
|
|
}
|
|
|
|
|
|
- var postList = new List<(double, object)>();
|
|
|
+ var postList = new List<(decimal, object)>();
|
|
|
var query = new
|
|
|
{
|
|
|
_source = new string[] { "id", "subjectiveScore" },
|