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