From a8f42976bd1f201ec7567c484cfffe36a44830c1 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Mon, 12 Jun 2023 09:54:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=95=86=E5=93=81=E9=A2=84?= =?UTF-8?q?=E8=A7=88=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/StoreProduct.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controller/api/store/product/StoreProduct.php b/app/controller/api/store/product/StoreProduct.php index 3db98c39..8a84544b 100644 --- a/app/controller/api/store/product/StoreProduct.php +++ b/app/controller/api/store/product/StoreProduct.php @@ -13,6 +13,7 @@ namespace app\controller\api\store\product; +use app\common\model\store\product\Product; use app\common\repositories\store\PriceRuleRepository; use app\common\repositories\store\product\SpuRepository; use app\common\repositories\store\StoreCategoryRepository; @@ -167,6 +168,7 @@ class StoreProduct extends BaseController public function preview() { $param = $this->request->params(['key','id',['product_type',0]]); + $param['product_type'] = Product::getInstance()->where('product_id', $param['id'])->value('product_type'); $data = []; if($param['key']){ $data = Cache::get($param['key']);