Browse Source

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

kevin 3 months ago
parent
commit
4627ee82e5
1 changed files with 3 additions and 0 deletions
  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\AdminCountry;
+use common\helpers\LoggerTool;
 use common\libs\dataList\DataListInterface;
 use common\models\Ad;
 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',
         ]);
 
+        LoggerTool::error(json_encode($this->listData));
+
         // COUNTRY_ID是逗号分割的ID,需要提取国家名称、CODE
         foreach($this->listData as $key => $row){
             $countryIds = explode(',', $row['COUNTRY_ID']);