lihao пре 4 година
родитељ
комит
b0b9924653

+ 3 - 0
gx_api/GxPress/Repository/GxPress.Repository.Implement/NoticeRepository.cs

@@ -811,7 +811,10 @@ namespace GxPress.Repository.Implement
                 , "tede_addressee.{Id as NoticeAddresseeId, SourceId as NoticeId}");
             result.Items = await _middleRepository.GetAllAsync<NoticeListPageResult>(query);
             foreach (var item in result.Items)
+            {
                 item.AvatarUrl = StringUtils.AddDomainMin(item.AvatarUrl);
+                item.AttributeValue = item.AttributeValue == 0 ? 1 : item.AttributeValue;
+            }
             return result;
         }
         public async Task<int> CountAsync(string sql)