siteserver / cms

SS CMS 基于 .NET Core,能够以最低的成本、最少的人力投入在最短的时间内架设一个功能齐全、性能优异、规模庞大并易于维护的网站平台。
https://sscms.com
GNU Affero General Public License v3.0
3.64k stars 1.2k forks source link

搜索标签中,如果指定了不存在的栏目id,会导致搜不出任何结果 #3682

Closed fsea closed 9 months ago

fsea commented 10 months ago

并且/api/stl/actions/search会报400错误,

经过排查应该是SSCMS.Core\Repositories\ContentRepository.Get.cs中的public async Task GetQueryByStlSearchAsync(IDatabaseManager databaseManager, bool isAllSites, string siteName, string siteDir, string siteIds, string channelIndex, string channelName, string channelIds, string type, string word, string dateAttribute, string dateFrom, string dateTo, string since, int siteId, List excludeAttributes, NameValueCollection form)方法: ![image](https://github.com/siteserver/cms/assets/7764467/a7a9e2cb-4616-43d6-b4bc-c6d83528d568) 如果theChannel=null则下一行会报错
starlying commented 10 months ago

收到,我们修复一下,谢谢反馈

starlying commented 9 months ago

问题已修复,谢谢。