فهرست منبع

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

kevin 4 ماه پیش
والد
کامیت
4d6b9617b0
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      backendApi/modules/v1/models/lists/article/IndexList.php

+ 5 - 0
backendApi/modules/v1/models/lists/article/IndexList.php

@@ -64,6 +64,11 @@ class IndexList extends \common\libs\dataList\DataList implements DataListInterf
                 'SORT' => null,
                 'SORT' => null,
                 'CREATED_AT' => [
                 'CREATED_AT' => [
                     'header' => Yii::t('ctx', 'createTime'),
                     'header' => Yii::t('ctx', 'createTime'),
+                    'value' => function($row) {
+                        return (new DateTime([
+                            'value' => $row['CREATED_AT'],
+                        ]))->result();
+                    },
                     'headerOther' => ['width' => '180'],
                     'headerOther' => ['width' => '180'],
                 ],
                 ],
             ];
             ];