|
|
@@ -30,10 +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){
|
|
|
+ foreach($this->listData['list'] as $key => $row){
|
|
|
$countryIds = explode(',', $row['COUNTRY_ID']);
|
|
|
$countryNames = [];
|
|
|
$countryCodes = [];
|
|
|
@@ -42,8 +40,8 @@ class AdIndexList extends \common\libs\dataList\DataList implements DataListInte
|
|
|
$countryNames[] = $country['NAME'];
|
|
|
$countryCodes[] = $country['CODE'];
|
|
|
}
|
|
|
- $this->listData[$key]['COUNTRY_NAME'] = implode(',', $countryNames);
|
|
|
- $this->listData[$key]['COUNTRY_CODE'] = implode(',', $countryCodes);
|
|
|
+ $this->listData['list'][$key]['COUNTRY_NAME'] = implode(',', $countryNames);
|
|
|
+ $this->listData['list'][$key]['COUNTRY_CODE'] = implode(',', $countryCodes);
|
|
|
}
|
|
|
}
|
|
|
|