diff --git a/app/common/model/GoodsCategoryRel.php b/app/common/model/GoodsCategoryRel.php index 240b8793..33b7ec1f 100644 --- a/app/common/model/GoodsCategoryRel.php +++ b/app/common/model/GoodsCategoryRel.php @@ -13,6 +13,7 @@ declare (strict_types=1); namespace app\common\model; use cores\BaseModel; +use app\common\model\Goods; /** * 商品与分类关系模型 @@ -50,7 +51,7 @@ class GoodsCategoryRel extends BaseModel } public static function getcategory(int $storeId = null,int $merchantId = null) { - $list = goods::alias('a') + $list = Goods::alias('a') ->join('goods_category_rel b', 'a.goods_id = b.goods_id') ->where([ 'a.store_id' => $storeId,