...
|
...
|
@@ -783,7 +783,7 @@ class DetailModel |
|
|
}
|
|
|
|
|
|
if(count($result['attaches']) > 1) {
|
|
|
Helpers::sortArrByField($result['attaches'], 'orderBy', true, SORT_NUMERIC);
|
|
|
Helpers::sortArrByField($result['attaches'], 'orderBy');
|
|
|
}
|
|
|
|
|
|
} while (false);
|
...
|
...
|
@@ -806,22 +806,22 @@ class DetailModel |
|
|
$result['img'] = array(
|
|
|
'attachUrl' => Helpers::getImageUrl($attachment['attachUrl'], 750, ''),
|
|
|
'attachName' => $attachment['attachName'],
|
|
|
'intro' => $attachment['intro'],
|
|
|
'orderBy' => $attachment['orderBy']
|
|
|
'intro' => $attachment['intro']
|
|
|
);
|
|
|
$result['orderBy'] = $attachment['orderBy'];
|
|
|
break;
|
|
|
case 2: // 视频
|
|
|
$result['video'] = array(
|
|
|
'attachUrl' => $attachment['attachUrl'],
|
|
|
'orderBy' => $attachment['orderBy'],
|
|
|
'img' => Helpers::getImageUrl($attachment['intro'], 750, '')
|
|
|
);
|
|
|
$result['orderBy'] = $attachment['orderBy'];
|
|
|
break;
|
|
|
case 3: // 文本类型
|
|
|
$result['text'] = array(
|
|
|
'intro' => $attachment['intro'],
|
|
|
'orderBy' => $attachment['orderBy']
|
|
|
'intro' => $attachment['intro']
|
|
|
);
|
|
|
$result['orderBy'] = $attachment['orderBy'];
|
|
|
break;
|
|
|
default:
|
|
|
break;
|
...
|
...
|
|