|
|
@@ -10,10 +10,9 @@ namespace backendApi\modules\v1\controllers;
|
|
|
|
|
|
use backendApi\modules\v1\models\Admin;
|
|
|
use backendApi\modules\v1\models\AdminCountry;
|
|
|
-use backendApi\modules\v1\models\lists\ad\IndexList;
|
|
|
+use backendApi\modules\v1\models\lists\ad\AdIndexList;
|
|
|
use common\helpers\Cache;
|
|
|
use common\helpers\Form;
|
|
|
-use common\helpers\LoggerTool;
|
|
|
use common\models\Ad;
|
|
|
use common\models\AdLocation;
|
|
|
use common\models\Article;
|
|
|
@@ -97,8 +96,7 @@ class AdController extends BaseController
|
|
|
$condition .= ' AND AD.COUNTRY_ID IN (' . implode(',', $placeholders) . ')';
|
|
|
}
|
|
|
|
|
|
- $obj = new IndexList();
|
|
|
- LoggerTool::error('tttt' . json_encode($obj->getFilterTypes()));
|
|
|
+ $obj = new AdIndexList();
|
|
|
$data = $obj->getList(['condition' => $condition, 'params' => $params]);
|
|
|
|
|
|
$data['allLocation'] = AdLocation::getAllLocation();
|