Browse Source

[Fix] Order bug in goods

Ark 4 years ago
parent
commit
d32bf4e55e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/api/controller/goods.js

+ 1 - 1
src/api/controller/goods.js

@@ -153,7 +153,7 @@ module.exports = class extends Base {
     };
     };
     if (sort === 'price') {
     if (sort === 'price') {
       // 按价格
       // 按价格
-      orderMap['retail_price'] = 'order';
+      orderMap['retail_price'] = order;
     } else {
     } else {
       // 按商品添加时间
       // 按商品添加时间
       orderMap['id'] = 'desc';
       orderMap['id'] = 'desc';