shish il y a 5 ans
Parent
commit
aa19f4cdc3
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      biz-ghs/item/services/ItemService.php

+ 2 - 2
biz-ghs/item/services/ItemService.php

@@ -202,12 +202,12 @@ class ItemService extends BaseService
     public static function initItem($sjId, $shopId)
     public static function initItem($sjId, $shopId)
     {
     {
         //获取pt 的花材分类
         //获取pt 的花材分类
-        $ptClass = PtItemCatClass::getAllList("*", ['type' => 0]);
+        $ptClass = PtItemCatClass::getAllList("*", ['type' => 0], 'inTurn desc');
         if (empty($ptClass)) {
         if (empty($ptClass)) {
             return false;
             return false;
         }
         }
         $hasClassIds = array_column($ptClass, 'id');
         $hasClassIds = array_column($ptClass, 'id');
-        $relate = PtItemCatRelateClass::getAllByCondition(['catId' => ['in', $hasClassIds]], 'inTurn desc', '*');
+        $relate = PtItemCatRelateClass::getAllByCondition(['catId' => ['in', $hasClassIds]], null, '*');
         $relateInfo = [];
         $relateInfo = [];
         $hasItemIds = [];
         $hasItemIds = [];
         if (!empty($relate)) {
         if (!empty($relate)) {