浏览代码

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

kevin 9 月之前
父节点
当前提交
3b38af3adf
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 2 1
      backendApi/modules/v1/controllers/AdController.php
  2. 0 2
      common/libs/dataList/DataList.php

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

@@ -13,6 +13,7 @@ use backendApi\modules\v1\models\AdminCountry;
 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;
@@ -104,7 +105,7 @@ class AdController extends BaseController
         $obj = new AdIndexList();
         // 直接获取完整的数据,包括columnsShow和filterTypes
         $data = $obj->getList(['condition' => $condition, 'params' => $params]);
-
+        LoggerTool::error($data);
         // 添加额外数据
         $data['allLocation'] = AdLocation::getAllLocation();
         $data['countries'] = $countries;

+ 0 - 2
common/libs/dataList/DataList.php

@@ -127,8 +127,6 @@ class DataList extends Model
             $this->getFilterTypes();
         }
 
-        LoggerTool::error([$this->dataHandle(), $this->getColumn(), $this->getFilterTypes()]);
-
         // 利用权限处理掉不需要的字段(只需要从$this->columns中去掉就可以)
         $userId = isset($params['userId']) && $params['userId'] ? $params['userId'] : null;
         $this->permissionColumn($userId);