shish 5 лет назад
Родитель
Сommit
d17906be24
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app-ghs/controllers/ProductController.php

+ 1 - 1
app-ghs/controllers/ProductController.php

@@ -130,7 +130,7 @@ class ProductController extends BaseController
                 }
                 $lackIds = array_filter(array_unique($lackIds));
                 $where['id'] = ['in', $lackIds];
-                $respond = ProductClass::getList("*", $where, "actualSold asc");
+                $respond = ProductClass::getList("*", $where, "actualSold desc");
             } else {
                 $respond = ProductClass::getList("*", $where, "inTurn desc");
             }