...
|
...
|
@@ -776,7 +776,11 @@ class DetailModel |
|
|
$result['description'] = $product['description'];
|
|
|
|
|
|
// 附件
|
|
|
if (isset($product['attachment'])) {
|
|
|
if (!isset($product['attachment'])) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
$result['attaches'] = array();
|
|
|
foreach ($product['attachment'] as $item) {
|
|
|
if ($item['isDefault'] === 1) { // 排除默认图片
|
|
|
continue;
|
...
|
...
|
@@ -784,12 +788,10 @@ class DetailModel |
|
|
|
|
|
$result['attaches'][] = self::procLimitProductAttach($item);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
if(count($result['attaches']) > 1) {
|
|
|
Helpers::sortArrByField($result['attaches'], 'orderBy', true);
|
|
|
}
|
|
|
|
|
|
} while (false);
|
|
|
|
|
|
return $result;
|
...
|
...
|
|