mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 10:32:48 +08:00
增加商品详情的案例查询;删除部分技术债务
This commit is contained in:
@@ -15,4 +15,12 @@ class MallGoods extends TimeModel
|
||||
return $this->belongsTo('app\admin\model\MallCate', 'cate_id', 'id');
|
||||
}
|
||||
|
||||
}
|
||||
public function getTagListTitleAttr()
|
||||
{
|
||||
$tags = $this->getAttr('tag');
|
||||
|
||||
$list_tag = MallTag::whereIn('id', $tags)->column('title');
|
||||
|
||||
return $list_tag;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user