From 0b7ed0fcd3318f8954d78f0c2091e05d2189b9e2 Mon Sep 17 00:00:00 2001 From: linyaostalker <602604991@qq.com> Date: Tue, 19 Nov 2019 11:08:00 +0800 Subject: [PATCH] =?UTF-8?q?antgoods=E6=A8=A1=E5=9D=97=E5=A2=9E=E5=8A=A0sho?= =?UTF-8?q?pcategory=E6=A8=A1=E5=9E=8B=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/models/ars/Category.php | 85 ------------------- .../goods/src}/models/ars/ShopCategory.php | 2 +- 2 files changed, 1 insertion(+), 86 deletions(-) delete mode 100644 common/models/ars/Category.php rename {common => vendor/antgoods/goods/src}/models/ars/ShopCategory.php (98%) mode change 100644 => 100755 diff --git a/common/models/ars/Category.php b/common/models/ars/Category.php deleted file mode 100644 index 3e67792..0000000 --- a/common/models/ars/Category.php +++ /dev/null @@ -1,85 +0,0 @@ - 60], - [['icon'], 'string', 'max' => 64], - ]; - } - - /** - * {@inheritdoc} - */ - public function attributeLabels() - { - return [ - 'id' => 'id', - 'name' => '类别名称', - 'pid' => '父级id', - 'goods_count' => '商品数量', - 'sort_order' => '排序', - 'icon_type' => '图标类型', - 'icon' => '图标', - 'is_show' => '是否显示,1为不显示', - 'is_delete' => '是否删除,1为已删除', - 'created_at' => '创建时间', - 'updated_at' => '更新时间', - ]; - } - - /** - * @author linyao - * @email 602604991@qq.com - * @created Nov 8, 2019 - * - * 行为存储创建时间和更新时间 - */ - public function behaviors() - { - return [ - [ - 'class' => TimestampBehavior::className(), - 'createdAtAttribute' => 'created_at', - 'updatedAtAttribute' => 'updated_at', - 'value' => function() { - return time(); - }, - ], - ]; - } -} diff --git a/common/models/ars/ShopCategory.php b/vendor/antgoods/goods/src/models/ars/ShopCategory.php old mode 100644 new mode 100755 similarity index 98% rename from common/models/ars/ShopCategory.php rename to vendor/antgoods/goods/src/models/ars/ShopCategory.php index 5df7d3d..aac4022 --- a/common/models/ars/ShopCategory.php +++ b/vendor/antgoods/goods/src/models/ars/ShopCategory.php @@ -1,6 +1,6 @@