From eaa994cc7fd7b900953d1799e4e282603a680083 Mon Sep 17 00:00:00 2001 From: wmc Date: Thu, 1 Feb 2024 16:26:55 +0800 Subject: [PATCH] 1111 --- app/api/model/Goods.php | 2 ++ app/api/model/GoodsBrowseLog.php | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 app/api/model/GoodsBrowseLog.php diff --git a/app/api/model/Goods.php b/app/api/model/Goods.php index 8803c782..29f75761 100644 --- a/app/api/model/Goods.php +++ b/app/api/model/Goods.php @@ -161,6 +161,8 @@ class Goods extends GoodsModel ]; $goodsInfo->specifications = $newList; } + //加入足迹 + return $goodsInfo->hidden(static::getHidden(['images'])); } diff --git a/app/api/model/GoodsBrowseLog.php b/app/api/model/GoodsBrowseLog.php new file mode 100644 index 00000000..e064ae78 --- /dev/null +++ b/app/api/model/GoodsBrowseLog.php @@ -0,0 +1,24 @@ + +// +---------------------------------------------------------------------- +declare (strict_types=1); + +namespace app\api\model; + +use app\common\model\GoodsSpecRel as GoodsSpecRelModel; + +/** + * 商品规格关系模型 + * Class GoodsSpecRel + * @package app\api\model + */ +class GoodsBrowseLog extends GoodsSpecRelModel +{ +}