Merge pull request #690 from openclassify/vedatak

fixed seen list
This commit is contained in:
Fatih Alp 2020-10-01 15:31:36 +03:00 committed by GitHub
commit 6a62837a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,17 +235,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'] != "") {
$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'];
} }