mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -06:00
fixed seen list
This commit is contained in:
parent
7b81c1cd76
commit
1bbf3bc2ad
@ -251,17 +251,16 @@ class AdvsController extends PublicController
|
|||||||
), 301);
|
), 301);
|
||||||
}
|
}
|
||||||
|
|
||||||
$seenList = null;
|
|
||||||
foreach ($advs as $index => $ad) {
|
foreach ($advs as $index => $ad) {
|
||||||
$advs[$index]->detail_url = $this->adv_model->getAdvDetailLinkByModel($ad, 'list');
|
$advs[$index]->detail_url = $this->adv_model->getAdvDetailLinkByModel($ad, 'list');
|
||||||
$advs[$index] = $this->adv_model->AddAdsDefaultCoverImage($ad);
|
$advs[$index] = $this->adv_model->AddAdsDefaultCoverImage($ad);
|
||||||
|
}
|
||||||
|
|
||||||
if ($isActiveCustomFields && isset($param['cat']) and $param['cat'] != "") {
|
if ($isActiveCustomFields) {
|
||||||
$rtnvalues = app('Visiosoft\CustomfieldsModule\Http\Controller\cfController')
|
$return_values = app('Visiosoft\CustomfieldsModule\Http\Controller\cfController')
|
||||||
->indexseen($ad, $param['cat'], $advs, $index);
|
->indexseen($categoryId, $advs);
|
||||||
$advs = $rtnvalues['advs'];
|
$advs = $return_values['advs'];
|
||||||
$seenList = $rtnvalues['seenList'];
|
$seenList = $return_values['seenList'];
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user