fixed seen list

This commit is contained in:
vedatakd 2020-10-01 14:49:12 +03:00
parent 7b81c1cd76
commit 1bbf3bc2ad

View File

@ -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'];
}