From c4a4ac1965fbf649a55c68c171ff9ac2c8690d8d Mon Sep 17 00:00:00 2001 From: shirne Date: Thu, 15 Aug 2024 21:36:18 +0800 Subject: [PATCH] fix --- src/application/common/core/ContentModel.php | 6 ++---- src/extend/modules/credit/model/GoodsModel.php | 7 +++++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/application/common/core/ContentModel.php b/src/application/common/core/ContentModel.php index 1aedd316..362a8e59 100644 --- a/src/application/common/core/ContentModel.php +++ b/src/application/common/core/ContentModel.php @@ -32,7 +32,7 @@ public function setTypeAttr($value) } /** - * @var $cateFacade \app\common\model\CategoryModel + * @var \app\common\model\CategoryModel */ protected $cateFacade; @@ -284,9 +284,7 @@ public function tagList($attrs, $filter = false) return $this->afterTagList($this->analysisType($list), $attrs); } - protected function onFilter($model, $attrs) - { - } + protected function onFilter($model, $attrs) {} public function tagRelation($attrs, $filter = false) { diff --git a/src/extend/modules/credit/model/GoodsModel.php b/src/extend/modules/credit/model/GoodsModel.php index f6beae22..031d6f5b 100644 --- a/src/extend/modules/credit/model/GoodsModel.php +++ b/src/extend/modules/credit/model/GoodsModel.php @@ -13,4 +13,11 @@ class GoodsModel extends ContentModel { protected $autoWriteTimestamp = true; protected $type = ['prop_data' => 'array']; + + function __construct($data = []) + { + parent::__construct($data); + $this->cateFacade = GoodsCategoryFacade::getFacadeInstance(); + $this->searchFields = 'title|goods_no|description'; + } }