Просмотр исходного кода

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

kevin 3 месяцев назад
Родитель
Сommit
3b38af3adf

+ 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);