瀏覽代碼

feat: EK-2806: 会员端Promo和banner图增加分国家设置.

kevin 3 月之前
父節點
當前提交
04296a754e

+ 2 - 4
backendApi/modules/v1/controllers/AdController.php

@@ -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();

+ 1 - 1
backendApi/modules/v1/models/lists/ad/IndexList.php → backendApi/modules/v1/models/lists/ad/AdIndexList.php

@@ -10,7 +10,7 @@ use common\models\Countries;
 use common\libs\dataList\column\DateTime;
 use Yii;
 
-class IndexList extends \common\libs\dataList\DataList implements DataListInterface
+class AdIndexList extends \common\libs\dataList\DataList implements DataListInterface
 {
     /**
      * 列表名称