mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 18:03:27 +08:00
【优化】小程序商品栏目列表调整为按照是否推荐、是否热门、排序从大到小排序方式。
This commit is contained in:
@@ -237,7 +237,7 @@ namespace CoreCms.Net.Web.WebApi.Controllers
|
||||
where = where.And(p => p.name.Contains(obj.searchName));
|
||||
}
|
||||
}
|
||||
var orderBy = " isRecommend desc,isHot desc";
|
||||
var orderBy = " isRecommend desc,isHot desc,sort desc";
|
||||
if (!string.IsNullOrWhiteSpace(entity.order))
|
||||
{
|
||||
orderBy += "," + entity.order;
|
||||
|
||||
Reference in New Issue
Block a user