...
|
...
|
@@ -180,13 +180,13 @@ class RecomController extends AbstractAction |
|
|
$templateId = $this->get('template_id', 0);
|
|
|
|
|
|
/* 创意生活只有一页数据 */
|
|
|
$page = $this->get('page', 1);
|
|
|
if (intval($page) > 1 || empty($templateId)) {
|
|
|
$page = intval($this->get('page', 1));
|
|
|
if (empty($page) || empty($templateId)) {
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
/* 取可能喜欢的数据 */
|
|
|
$recom = RecomData::newPreference($templateId);
|
|
|
$recom = RecomData::newPreference($templateId, '', $page);
|
|
|
|
|
|
/* 构建人气单品数据 */
|
|
|
if (empty($recom) || empty($recom['data']['product_list'])) {
|
...
|
...
|
|