Преглед изворни кода

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

kevin пре 5 месеци
родитељ
комит
24c7c1d542
1 измењених фајлова са 8 додато и 8 уклоњено
  1. 8 8
      backendApi/modules/v1/models/lists/ad/AdIndexList.php

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

@@ -43,14 +43,14 @@ class AdIndexList extends \common\libs\dataList\DataList implements DataListInte
                     'headerOther' => ['width' => '150'],
                 ],
                 'COUNTRY_NAME' => null,
-//                'LID' => [
-//                    'label' => '广告位',
-//                    'type' => function($data){
-//                        $value = $data['value'];
-//                        $adLocation = AdLocation::findOneAsArray('ID=:ID', [':ID'=>$value], 'LOCATION_NAME');
-//                        return $adLocation['LOCATION_NAME'];
-//                    },
-//                ],
+                'LID' => [
+                    'header' => '广告位',
+                    'value' => function($row){
+                        $adLocation = AdLocation::findOneAsArray('ID=:ID', [':ID'=>$row['LID']], 'LOCATION_NAME');
+                        return $adLocation['LOCATION_NAME'];
+                    },
+                    'headerOther' => ['width' => '180'],
+                ],
                 'STATUS' => [
                     'header' => Yii::t('ctx', 'status'),
                     'headerOther' => ['width' => '100'],