From e3647f5dadb51cf903504159b388d302b53f0cab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A8=84=E6=A2=A6=E5=AE=81?= Date: Sun, 9 May 2021 18:22:55 +0800 Subject: [PATCH] checkredis --- addons/unishop/controller/Product.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/unishop/controller/Product.php b/addons/unishop/controller/Product.php index 3396fec..6eebe68 100755 --- a/addons/unishop/controller/Product.php +++ b/addons/unishop/controller/Product.php @@ -83,7 +83,7 @@ class Product extends Base } $data = $data->append(['images_text', "detail_images_text",'spec_list', 'spec_table_list'])->toArray(); $qaModel = new Qa(); - $qa=$qaModel->field("question,answer")->select(); + $qa=$qaModel->where(["product_id"=>$productId])->field("question,answer")->select(); $list = collection($qa)->toArray(); $data['qa']=$list; $this->success('', $data);