From 65be42fcd0d7104a51c2117dd74838f3c108e552 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Thu, 22 Aug 2024 14:45:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=9C=AC=E5=9C=B0=E7=94=9F?= =?UTF-8?q?=E6=B4=BB=E5=95=86=E5=93=81=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LocalStoreGoodsLogic.php | 2 -- app/common/model/localstore/LocalStoreGoods.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/app/api/logic/LocalStoreGoodsLogic.php b/app/api/logic/LocalStoreGoodsLogic.php index 8888f05d..27ed763d 100644 --- a/app/api/logic/LocalStoreGoodsLogic.php +++ b/app/api/logic/LocalStoreGoodsLogic.php @@ -8,8 +8,6 @@ use app\common\model\localstore\LocalStoreGoodsPic; class LocalStoreGoodsLogic extends Logic { - private static $SHELVES = 1; // 上架中 - public static function lists($get) { $list = LocalStoreGoods::with('pic') diff --git a/app/common/model/localstore/LocalStoreGoods.php b/app/common/model/localstore/LocalStoreGoods.php index d8c0c3aa..82f18dbe 100644 --- a/app/common/model/localstore/LocalStoreGoods.php +++ b/app/common/model/localstore/LocalStoreGoods.php @@ -11,6 +11,6 @@ class LocalStoreGoods extends Models public function pic() { - $this->hasMany(LocalStoreGoodsLogic::class, 'lsg_id'); + $this->hasMany(LocalStoreGoodsLogic::class, 'lstore_id', 'lstore_id'); } } \ No newline at end of file