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