返回推荐的版本
continuous-integration/drone/push Build is passing Details

IRC_NewDev
hang 2024-07-04 17:24:29 +08:00
parent 6264d105ab
commit 933a43f4ea
1 changed files with 3 additions and 3 deletions

View File

@ -73,13 +73,13 @@ namespace IRaCIS.Core.Application.Service
}
[AllowAnonymous]
public async Task<ExploreRecommendView> GetExploreRecommentInfo()
public async Task<List<ExploreRecommendView> > GetExploreRecommentInfo()
{
var result = await _exploreRecommendRepository.Where(t => t.IsDeleted == false).ProjectTo<ExploreRecommendView>(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
var result = await _exploreRecommendRepository.Where(t => t.IsDeleted == false).ProjectTo<ExploreRecommendView>(_mapper.ConfigurationProvider).ToListAsync();
if (result == null)
if (result .Count==0)
{
throw new QueryBusinessObjectNotExistException("系统浏览器版本推荐未维护,请联系维护人员");
}