Переглянути джерело

feat: EK-2086: Member Portal : Dashboard Article and Ad only show self country.

kevin 4 місяців тому
батько
коміт
4627ee82e5
1 змінених файлів з 3 додано та 0 видалено
  1. 3 0
      backendApi/modules/v1/models/lists/ad/AdIndexList.php

+ 3 - 0
backendApi/modules/v1/models/lists/ad/AdIndexList.php

@@ -3,6 +3,7 @@ namespace backendApi\modules\v1\models\lists\ad;
 
 
 use backendApi\modules\v1\models\Admin;
 use backendApi\modules\v1\models\Admin;
 use backendApi\modules\v1\models\AdminCountry;
 use backendApi\modules\v1\models\AdminCountry;
+use common\helpers\LoggerTool;
 use common\libs\dataList\DataListInterface;
 use common\libs\dataList\DataListInterface;
 use common\models\Ad;
 use common\models\Ad;
 use common\models\AdLocation;
 use common\models\AdLocation;
@@ -29,6 +30,8 @@ class AdIndexList extends \common\libs\dataList\DataList implements DataListInte
             'orderBy' => 'AD.STATUS DESC,AD.SORT DESC,AD.CREATED_AT ASC',
             'orderBy' => 'AD.STATUS DESC,AD.SORT DESC,AD.CREATED_AT ASC',
         ]);
         ]);
 
 
+        LoggerTool::error(json_encode($this->listData));
+
         // COUNTRY_ID是逗号分割的ID,需要提取国家名称、CODE
         // COUNTRY_ID是逗号分割的ID,需要提取国家名称、CODE
         foreach($this->listData as $key => $row){
         foreach($this->listData as $key => $row){
             $countryIds = explode(',', $row['COUNTRY_ID']);
             $countryIds = explode(',', $row['COUNTRY_ID']);