shish 3 anni fa
parent
commit
b03514ad31
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      biz/item/classes/PtItemCatRelateClass.php

+ 1 - 1
biz/item/classes/PtItemCatRelateClass.php

@@ -16,7 +16,7 @@ class PtItemCatRelateClass extends BaseClass
         $list = $data['list'];
         if (!empty($list)) {
             $ids = array_column($list, 'itemId');
-            $list = PtItemClass::getAllByCondition(['id' => ['in', $ids]], null, '*');
+            $list = PtItemClass::getAllByCondition(['id' => ['in', $ids]], 'inTurn DESC', '*');
             if (!empty($list)) {
                 foreach ($list as $key => $val) {
                     $shortCover = $val['cover'] ?? '';