Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shirne committed Aug 15, 2024
1 parent c935b87 commit c4a4ac1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/application/common/core/ContentModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function setTypeAttr($value)
}

/**
* @var $cateFacade \app\common\model\CategoryModel
* @var \app\common\model\CategoryModel
*/
protected $cateFacade;

Expand Down Expand Up @@ -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)
{
Expand Down
7 changes: 7 additions & 0 deletions src/extend/modules/credit/model/GoodsModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}

0 comments on commit c4a4ac1

Please sign in to comment.