Commit 6ba4d6fc55ca73953d9b393eba12f5529413a11e
Committed by
GitHub
Merge pull request #1270 from dadiyang/fix/product-app-spu-sort-create-time
[BUG] 商城商品列表「新品优先」排序失效:app 分页接口排序白名单不放行 createTime
Showing
1 changed file
with
1 additions
and
1 deletions
yudao-module-mall/yudao-module-product/src/main/java/cn/iocoder/yudao/module/product/controller/app/spu/vo/AppProductSpuPageReqVO.java
| ... | ... | @@ -45,7 +45,7 @@ public class AppProductSpuPageReqVO extends PageParam { |
| 45 | 45 | if (StrUtil.isEmpty(sortField)) { |
| 46 | 46 | return true; |
| 47 | 47 | } |
| 48 | - return StrUtil.equalsAny(sortField, SORT_FIELD_PRICE, SORT_FIELD_SALES_COUNT); | |
| 48 | + return StrUtil.equalsAny(sortField, SORT_FIELD_PRICE, SORT_FIELD_SALES_COUNT, SORT_FIELD_CREATE_TIME); | |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | } | ... | ... |